youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 6f5c1807f43b9dfd17fdc6932ae7ecb6c77fb1a0
parent 985637cbbfc1a79091eb2f5ca4afec84f6616c75
Author: bitraid <bitraid@protonmail.ch>
Date:   Tue, 12 Feb 2019 19:02:29 +0200

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


Diffstat:
Myoutube_dl/extractor/imgur.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/imgur.py b/youtube_dl/extractor/imgur.py @@ -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): @@ -87,7 +91,7 @@ class ImgurIE(InfoExtractor): return { 'id': video_id, 'formats': formats, - 'title': self._og_search_title(webpage), + 'title': self._og_search_title(webpage, default=video_id), }