Browse Source

[extractor/generic] Improve generic SMIL detection

totalwebcasting
Sergey M․ 10 years ago
parent
commit
e5e8d20a3a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/generic.py

+ 3
- 1
youtube_dl/extractor/generic.py View File

@ -1110,11 +1110,13 @@ class GenericIE(InfoExtractor):
self.report_extraction(video_id)
# Is it an RSS feed?
# Is it an RSS feed or a SMIL file?
try:
doc = parse_xml(webpage)
if doc.tag == 'rss':
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:
pass


Loading…
Cancel
Save