projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[rutube:embed] Extend _VALID_URL (Closes #7588)
[youtube-dl]
/
youtube_dl
/
extractor
/
playtvak.py
diff --git
a/youtube_dl/extractor/playtvak.py
b/youtube_dl/extractor/playtvak.py
index 2b338966f496e23d24217c60ee47de228d3e78a4..e360404f7270ebc607ae1b651fcc50445e811659 100644
(file)
--- a/
youtube_dl/extractor/playtvak.py
+++ b/
youtube_dl/extractor/playtvak.py
@@
-106,7
+106,7
@@
class PlaytvakIE(InfoExtractor):
})
info_url = compat_urlparse.urlunparse(
})
info_url = compat_urlparse.urlunparse(
- parsed_url._replace(query
=
compat_urllib_parse.urlencode(qs, True)))
+ parsed_url._replace(query
=
compat_urllib_parse.urlencode(qs, True)))
json_info = self._download_json(
info_url, video_id,
json_info = self._download_json(
info_url, video_id,
@@
-120,7
+120,7
@@
class PlaytvakIE(InfoExtractor):
if not item:
raise ExtractorError('No suitable stream found')
if not item:
raise ExtractorError('No suitable stream found')
- quality = qualities(
['low', 'middle', 'high']
)
+ quality = qualities(
('low', 'middle', 'high')
)
formats = []
for fmt in item['video']:
formats = []
for fmt in item['video']:
@@
-132,7
+132,7
@@
class PlaytvakIE(InfoExtractor):
format_id = '%s_%s' % (format_, fmt['quality'])
preference = None
format_id = '%s_%s' % (format_, fmt['quality'])
preference = None
- if format_ in
['mp4', 'webm']
:
+ if format_ in
('mp4', 'webm')
:
ext = format_
elif format_ == 'rtmp':
ext = 'flv'
ext = format_
elif format_ == 'rtmp':
ext = 'flv'