1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-02-18 10:07:55 +01:00

seems that they use " instead of ' in czech tv now.

This commit is contained in:
Lubos Vondra 2017-11-03 23:12:12 +01:00
parent c3b29a31be
commit a769c2aa09

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}),