projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[smotri] Remove non relevant test
[youtube-dl]
/
youtube_dl
/
extractor
/
golem.py
diff --git
a/youtube_dl/extractor/golem.py
b/youtube_dl/extractor/golem.py
index a237f19ee35a7ba4ec0f85c0afc7ac92f8142ad8..2bfb9904022c6a3830901baa2ee380b6f4f14714 100644
(file)
--- a/
youtube_dl/extractor/golem.py
+++ b/
youtube_dl/extractor/golem.py
@@
-1,11
+1,11
@@
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
-import re
-
from .common import InfoExtractor
from .common import InfoExtractor
-from ..
utils
import (
+from ..
compat
import (
compat_urlparse,
compat_urlparse,
+)
+from ..utils import (
determine_ext,
)
determine_ext,
)
@@
-40,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({
@@
-59,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