projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[foxgay] Ensure height is int
[youtube-dl]
/
youtube_dl
/
extractor
/
streamango.py
diff --git
a/youtube_dl/extractor/streamango.py
b/youtube_dl/extractor/streamango.py
index aa4fad162c5ff2e50b6c055af3b0673a3f72f39e..a9e34c027504ff0f6585fa51cae4ba3a1ec5bfcd 100644
(file)
--- a/
youtube_dl/extractor/streamango.py
+++ b/
youtube_dl/extractor/streamango.py
@@
-21,6
+21,17
@@
class StreamangoIE(InfoExtractor):
'ext': 'mp4',
'title': '20170315_150006.mp4',
}
'ext': 'mp4',
'title': '20170315_150006.mp4',
}
+ }, {
+ # no og:title
+ 'url': 'https://streamango.com/embed/foqebrpftarclpob/asdf_asd_2_mp4',
+ 'info_dict': {
+ 'id': 'foqebrpftarclpob',
+ 'ext': 'mp4',
+ 'title': 'foqebrpftarclpob',
+ },
+ 'params': {
+ 'skip_download': True,
+ },
}, {
'url': 'https://streamango.com/embed/clapasobsptpkdfe/20170315_150006_mp4',
'only_matching': True,
}, {
'url': 'https://streamango.com/embed/clapasobsptpkdfe/20170315_150006_mp4',
'only_matching': True,
@@
-31,7
+42,7
@@
class StreamangoIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
webpage = self._download_webpage(url, video_id)
- title = self._og_search_title(webpage)
+ title = self._og_search_title(webpage
, default=video_id
)
formats = []
for format_ in re.findall(r'({[^}]*\bsrc\s*:\s*[^}]*})', webpage):
formats = []
for format_ in re.findall(r'({[^}]*\bsrc\s*:\s*[^}]*})', webpage):