1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 19:47:54 +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)
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(
'http://decko.ceskatelevize.cz/rest/Programme/relatedVideosForEpisode?'
+ compat_urllib_parse_urlencode({'IDEC':idec}),