projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a107193
)
[extractor/generic] Improve generic SMIL detection
author
Sergey M․
<dstftw@gmail.com>
Sat, 1 Aug 2015 19:13:59 +0000
(
01:13
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 1 Aug 2015 19:13:59 +0000
(
01:13
+0600)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 8cef61c3c9a235a6d3f3230b8517222334dc0fbc..6900ed96f6bc11397731acb2929d8c52a7436c8d 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-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