projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[twitch] Add new source format detection approach (closes #19193)
[youtube-dl]
/
youtube_dl
/
extractor
/
livestream.py
diff --git
a/youtube_dl/extractor/livestream.py
b/youtube_dl/extractor/livestream.py
index 317ebbc4ee60d17051574ae05b8575526216de05..e55b1a202426026763375880b549180efbd52a42 100644
(file)
--- a/
youtube_dl/extractor/livestream.py
+++ b/
youtube_dl/extractor/livestream.py
@@
-114,7
+114,7
@@
class LivestreamIE(InfoExtractor):
smil_url = video_data.get('smil_url')
if smil_url:
smil_url = video_data.get('smil_url')
if smil_url:
- formats.extend(self._extract_smil_formats(smil_url, video_id))
+ formats.extend(self._extract_smil_formats(smil_url, video_id
, fatal=False
))
m3u8_url = video_data.get('m3u8_url')
if m3u8_url:
m3u8_url = video_data.get('m3u8_url')
if m3u8_url:
@@
-363,7
+363,4
@@
class LivestreamShortenerIE(InfoExtractor):
id = mobj.group('id')
webpage = self._download_webpage(url, id)
id = mobj.group('id')
webpage = self._download_webpage(url, id)
- return {
- '_type': 'url',
- 'url': self._og_search_url(webpage),
- }
+ return self.url_result(self._og_search_url(webpage))