Skip to content

Commit f142a13

Browse files
committed
Prevent recursive calls when video is private
1 parent 9588b09 commit f142a13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/media_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ def fill_missing_details
5151
end
5252

5353
if mime_type == VIDEO_MIME_TYPE
54+
touch(:updated_at)
5455
info = Youtube::Video.new(url).get_information
5556

56-
# Wait for stream to finish
5757

5858
if info.present?
59+
# Wait for stream to finish
5960
success = info["is_live"] ? nil : !!info["id"]
6061

6162
if success && info['extractor'] == 'youtube'

0 commit comments

Comments
 (0)