aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-29 05:48:56 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-29 05:48:56 +0200
commit8157ae39042298831afc8f8e5d67619d21e3e00b (patch)
treea2a7ae2c6c8932a27c319c3be29956cc2486bd15 /youtube_dl
parente50e2fcd4deaab50da506a0abf1bafed16085cd7 (diff)
[golem] Fix under 2.6
It's a sad story; 2.6 does not support any non-trivial xpaths.
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/golem.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/golem.py b/youtube_dl/extractor/golem.py
index bebfe8568..53714f47f 100644
--- a/youtube_dl/extractor/golem.py
+++ b/youtube_dl/extractor/golem.py
@@ -38,11 +38,9 @@ class GolemIE(InfoExtractor):
}
formats = []
- for e in config.findall('./*[url]'):
+ for e in config:
url = e.findtext('./url')
if not url:
- self._downloader.report_warning(
- "{0}: url: empty, skipping".format(e.tag))
continue
formats.append({
@@ -57,7 +55,7 @@ class GolemIE(InfoExtractor):
info['formats'] = formats
thumbnails = []
- for e in config.findall('.//teaser[url]'):
+ for e in config.findall('.//teaser'):
url = e.findtext('./url')
if not url:
continue