kopia lustrzana https://github.com/yt-dlp/yt-dlp
[golem] Fix under 2.6
It's a sad story; 2.6 does not support any non-trivial xpaths.pull/8/head
rodzic
e50e2fcd4d
commit
8157ae3904
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue