mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 17:47:17 +08:00
[televizeseznam] use urljoin from ..utils
This commit is contained in:
parent
bd7328bbd7
commit
eb88210ac3
@ -4,7 +4,7 @@ from __future__ import unicode_literals
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import compat_urlparse
|
from ..utils import urljoin
|
||||||
|
|
||||||
|
|
||||||
class TelevizeSeznamIE(InfoExtractor):
|
class TelevizeSeznamIE(InfoExtractor):
|
||||||
@ -43,7 +43,7 @@ class TelevizeSeznamIE(InfoExtractor):
|
|||||||
subtitles.update({
|
subtitles.update({
|
||||||
v['language']: {
|
v['language']: {
|
||||||
'ext': 'srt',
|
'ext': 'srt',
|
||||||
'url': compat_urlparse.urljoin(spl_url, v['urls']['srt'])
|
'url': urljoin(spl_url, v['urls']['srt'])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return subtitles
|
return subtitles
|
||||||
@ -52,7 +52,7 @@ class TelevizeSeznamIE(InfoExtractor):
|
|||||||
formats = []
|
formats = []
|
||||||
for r, v in play_list.items():
|
for r, v in play_list.items():
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': compat_urlparse.urljoin(spl_url, v['url']),
|
'url': urljoin(spl_url, v['url']),
|
||||||
'width': v['resolution'][0],
|
'width': v['resolution'][0],
|
||||||
'height': v['resolution'][1],
|
'height': v['resolution'][1],
|
||||||
'resolution': '%sx%s' % (v['resolution'][0], v['resolution'][1]),
|
'resolution': '%sx%s' % (v['resolution'][0], v['resolution'][1]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user