1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-22 15:57:23 +00:00

[imgur] Use video id as title fallback (closes #18590)

This commit is contained in:
bitraid 2019-02-12 19:02:29 +02:00 committed by Sergey M
parent 985637cbbf
commit 6f5c1807f4

View file

@ -27,6 +27,10 @@ class ImgurIE(InfoExtractor):
}, { }, {
'url': 'https://i.imgur.com/crGpqCV.mp4', 'url': 'https://i.imgur.com/crGpqCV.mp4',
'only_matching': True, 'only_matching': True,
}, {
# no title
'url': 'https://i.imgur.com/jxBXAMC.gifv',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):
@ -87,7 +91,7 @@ class ImgurIE(InfoExtractor):
return { return {
'id': video_id, 'id': video_id,
'formats': formats, 'formats': formats,
'title': self._og_search_title(webpage), 'title': self._og_search_title(webpage, default=video_id),
} }