Skip to content

Commit

Permalink
[imgur] Use video id as title fallback (closes #18590)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitraid authored and meunierd committed Dec 27, 2019
1 parent b3c99b1 commit 57d190e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion youtube_dl/extractor/imgur.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class ImgurIE(InfoExtractor):
}, {
'url': 'https://i.imgur.com/crGpqCV.mp4',
'only_matching': True,
}, {
# no title
'url': 'https://i.imgur.com/jxBXAMC.gifv',
'only_matching': True,
}]

def _real_extract(self, url):
Expand Down Expand Up @@ -87,7 +91,7 @@ def _real_extract(self, url):
return {
'id': video_id,
'formats': formats,
'title': self._og_search_title(webpage),
'title': self._og_search_title(webpage, default=video_id),
}


Expand Down

0 comments on commit 57d190e

Please sign in to comment.