projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[myspace] pep8 and modernization
[youtube-dl]
/
youtube_dl
/
extractor
/
golem.py
diff --git
a/youtube_dl/extractor/golem.py
b/youtube_dl/extractor/golem.py
index a237f19ee35a7ba4ec0f85c0afc7ac92f8142ad8..53714f47f1a0a8cd1abb8aab0ec09cdbd283d51b 100644
(file)
--- a/
youtube_dl/extractor/golem.py
+++ b/
youtube_dl/extractor/golem.py
@@
-1,8
+1,6
@@
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
-import re
-
from .common import InfoExtractor
from ..utils import (
compat_urlparse,
from .common import InfoExtractor
from ..utils import (
compat_urlparse,
@@
-40,11
+38,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({
@@
-59,7
+55,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