projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50e2fc
)
[golem] Fix under 2.6
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 29 Sep 2014 03:48:56 +0000
(
05:48
+0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 29 Sep 2014 03:48:56 +0000
(
05:48
+0200)
It's a sad story; 2.6 does not support any non-trivial xpaths.
youtube_dl/extractor/golem.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/golem.py
b/youtube_dl/extractor/golem.py
index bebfe8568705165c31ed73e1b5bfc6f76fa58510..53714f47f1a0a8cd1abb8aab0ec09cdbd283d51b 100644
(file)
--- 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