1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

Merge pull request #1 from lubosan80/decko-ct

seems that they use " instead of ' in czech tv now.
This commit is contained in:
Ondřej Žára 2017-11-04 21:52:44 +01:00 committed by GitHub
commit 3979cb7d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,7 +317,7 @@ class CeskaTelevizeDeckoIE(InfoExtractor):
video_id = self._match_id(url) video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
idec = self._html_search_regex(r'var\s+IDEC\s*=\s*\'(.+?)\'', webpage, 'IDEC') idec = self._html_search_regex(r'var\s+IDEC\s*=\s*[\'\"](.+?)[\'\"]', webpage, 'IDEC')
json = self._download_json( json = self._download_json(
'http://decko.ceskatelevize.cz/rest/Programme/relatedVideosForEpisode?' 'http://decko.ceskatelevize.cz/rest/Programme/relatedVideosForEpisode?'
+ compat_urllib_parse_urlencode({'IDEC':idec}), + compat_urllib_parse_urlencode({'IDEC':idec}),