mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-11 20:41:00 +01:00
[streamango] Make title optional
This commit is contained in:
parent
0a3924e746
commit
eb703e5380
|
@ -21,6 +21,13 @@ class StreamangoIE(InfoExtractor):
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': '20170315_150006.mp4',
|
'title': '20170315_150006.mp4',
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
'url': 'https://streamango.com/embed/foqebrpftarclpob/asdf_asd_2_mp4',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'foqebrpftarclpob',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'foqebrpftarclpob',
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://streamango.com/embed/clapasobsptpkdfe/20170315_150006_mp4',
|
'url': 'https://streamango.com/embed/clapasobsptpkdfe/20170315_150006_mp4',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
@ -31,7 +38,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
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 = []
|
formats = []
|
||||||
for format_ in re.findall(r'({[^}]*\bsrc\s*:\s*[^}]*})', webpage):
|
for format_ in re.findall(r'({[^}]*\bsrc\s*:\s*[^}]*})', webpage):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user