projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[sportbox:embed] Add `_extract_urls`
[youtube-dl]
/
youtube_dl
/
extractor
/
tumblr.py
diff --git
a/youtube_dl/extractor/tumblr.py
b/youtube_dl/extractor/tumblr.py
index 40c53ff17ec1e6eb8a05bcf683d55d00f2455101..828c808a6456b6b99b134cb7ae9d9017de9ad3aa 100644
(file)
--- a/
youtube_dl/extractor/tumblr.py
+++ b/
youtube_dl/extractor/tumblr.py
@@
-43,7
+43,7
@@
class TumblrIE(InfoExtractor):
webpage, 'iframe url')
iframe = self._download_webpage(iframe_url, video_id)
video_url = self._search_regex(r'<source src="([^"]+)"',
webpage, 'iframe url')
iframe = self._download_webpage(iframe_url, video_id)
video_url = self._search_regex(r'<source src="([^"]+)"',
- iframe, 'video url')
+
iframe, 'video url')
# The only place where you can get a title, it's not complete,
# but searching in other places doesn't work for all videos
# The only place where you can get a title, it's not complete,
# but searching in other places doesn't work for all videos
@@
-56,6
+56,6
@@
class TumblrIE(InfoExtractor):
'url': video_url,
'ext': 'mp4',
'title': video_title,
'url': video_url,
'ext': 'mp4',
'title': video_title,
- 'description': self._og_search_description(webpage),
- 'thumbnail': self._og_search_thumbnail(webpage),
+ 'description': self._og_search_description(webpage
, default=None
),
+ 'thumbnail': self._og_search_thumbnail(webpage
, default=None
),
}
}