projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985637c
)
[imgur] Use video id as title fallback (closes #18590)
author
bitraid
<bitraid@protonmail.ch>
Tue, 12 Feb 2019 17:02:29 +0000
(19:02 +0200)
committer
Sergey M
<dstftw@gmail.com>
Tue, 12 Feb 2019 17:02:29 +0000
(
00:02
+0700)
youtube_dl/extractor/imgur.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/imgur.py
b/youtube_dl/extractor/imgur.py
index 0eb54db3f0ea34cfda6cd2be34efa2c9e1040cbf..a5ba03efae57e64cb0d05caaff8e9dd700aa6a0e 100644
(file)
--- 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
),
}