mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 12:45:51 +01:00
[extractor/generic] Improve generic SMIL detection
This commit is contained in:
parent
a107193e4b
commit
e5e8d20a3a
@ -1110,11 +1110,13 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
self.report_extraction(video_id)
|
self.report_extraction(video_id)
|
||||||
|
|
||||||
# Is it an RSS feed?
|
# Is it an RSS feed or a SMIL file?
|
||||||
try:
|
try:
|
||||||
doc = parse_xml(webpage)
|
doc = parse_xml(webpage)
|
||||||
if doc.tag == 'rss':
|
if doc.tag == 'rss':
|
||||||
return self._extract_rss(url, video_id, doc)
|
return self._extract_rss(url, video_id, doc)
|
||||||
|
elif re.match(r'^(?:{[^}]+})?smil$', doc.tag):
|
||||||
|
return self._parse_smil(doc, url, video_id)
|
||||||
except compat_xml_parse_error:
|
except compat_xml_parse_error:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user