projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[wdr] Add support for WDR sites (Closes #1367)
[youtube-dl]
/
youtube_dl
/
extractor
/
justintv.py
diff --git
a/youtube_dl/extractor/justintv.py
b/youtube_dl/extractor/justintv.py
index f6001799231f6361608643e0b2a27667913c882e..e9bde0c186a76e0546f97cdb08bf69e2b80b3e93 100644
(file)
--- a/
youtube_dl/extractor/justintv.py
+++ b/
youtube_dl/extractor/justintv.py
@@
-1,7
+1,6
@@
import json
import os
import re
import json
import os
import re
-import xml.etree.ElementTree
from .common import InfoExtractor
from ..utils import (
from .common import InfoExtractor
from ..utils import (
@@
-94,10
+93,9
@@
class JustinTVIE(InfoExtractor):
archive_id = m.group(1)
api = api_base + '/broadcast/by_chapter/%s.xml' % chapter_id
archive_id = m.group(1)
api = api_base + '/broadcast/by_chapter/%s.xml' % chapter_id
-
chapter_info_xml = self._download_webpage
(api, chapter_id,
+
doc = self._download_xml
(api, chapter_id,
note=u'Downloading chapter information',
errnote=u'Chapter information download failed')
note=u'Downloading chapter information',
errnote=u'Chapter information download failed')
- doc = xml.etree.ElementTree.fromstring(chapter_info_xml)
for a in doc.findall('.//archive'):
if archive_id == a.find('./id').text:
break
for a in doc.findall('.//archive'):
if archive_id == a.find('./id').text:
break