projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youku] compare bytes and str for compatible; use compat_urllib_parse for making...
[youtube-dl]
/
youtube_dl
/
extractor
/
golem.py
diff --git
a/youtube_dl/extractor/golem.py
b/youtube_dl/extractor/golem.py
index bebfe8568705165c31ed73e1b5bfc6f76fa58510..2bfb9904022c6a3830901baa2ee380b6f4f14714 100644
(file)
--- a/
youtube_dl/extractor/golem.py
+++ b/
youtube_dl/extractor/golem.py
@@
-2,8
+2,10
@@
from __future__ import unicode_literals
from .common import InfoExtractor
from __future__ import unicode_literals
from .common import InfoExtractor
-from ..
utils
import (
+from ..
compat
import (
compat_urlparse,
compat_urlparse,
+)
+from ..utils import (
determine_ext,
)
determine_ext,
)
@@
-38,11
+40,9
@@
class GolemIE(InfoExtractor):
}
formats = []
}
formats = []
- for e in config
.findall('./*[url]')
:
+ for e in config:
url = e.findtext('./url')
if not url:
url = e.findtext('./url')
if not url:
- self._downloader.report_warning(
- "{0}: url: empty, skipping".format(e.tag))
continue
formats.append({
continue
formats.append({
@@
-57,7
+57,7
@@
class GolemIE(InfoExtractor):
info['formats'] = formats
thumbnails = []
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
url = e.findtext('./url')
if not url:
continue