summaryrefslogtreecommitdiffstats
path: root/app.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app.rb')
-rw-r--r--app.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.rb b/app.rb
index ff1e1fa..7d6489a 100644
--- a/app.rb
+++ b/app.rb
@@ -531,7 +531,7 @@ def all_media_entries(top_dirs: nil)
rel = dir.delete_prefix(MEDIA_ROOT).delete_prefix('/')
data = load_album(dir)
next [] if data['visible'] == false && !admin?
- album_files(dir, data).select { |e| %i[image video].include?(e[:type]) }.map do |e|
+ album_files(dir, data).select { |e| %i[image video].include?(e[:type]) && !e[:transcoded_to] }.map do |e|
e.merge(file_rel: rel.empty? ? e[:name] : "#{rel}/#{e[:name]}")
end
end