X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fstreamcz.py;h=73efe95420ff7b83412864de02d8d5601690b537;hb=329818484ce44229835f4b2b02006120b0d81bcf;hp=1b53ee74dd7586b83c0f9cf4423c9733ad6d1622;hpb=84774661254933dab2a3788485c798bd264b0493;p=youtube-dl diff --git a/youtube_dl/extractor/streamcz.py b/youtube_dl/extractor/streamcz.py index 1b53ee74d..73efe9542 100644 --- a/youtube_dl/extractor/streamcz.py +++ b/youtube_dl/extractor/streamcz.py @@ -5,7 +5,10 @@ import re import json from .common import InfoExtractor -from ..utils import int_or_none +from ..utils import ( + int_or_none, + compat_str, +) class StreamCZIE(InfoExtractor): @@ -23,7 +26,7 @@ class StreamCZIE(InfoExtractor): 'duration': 256, }, }, { - 'url': 'https://www.stream.cz/blanik/10002447-tri-roky-pro-mazanka', + 'url': 'http://www.stream.cz/blanik/10002447-tri-roky-pro-mazanka', 'md5': '246272e753e26bbace7fcd9deca0650c', 'info_dict': { 'id': '10002447', @@ -68,7 +71,7 @@ class StreamCZIE(InfoExtractor): self._sort_formats(formats) return { - 'id': str(jsonData['episode_id']), + 'id': compat_str(jsonData['episode_id']), 'title': self._og_search_title(webpage), 'thumbnail': jsonData['episode_image_original_url'].replace('//', 'http://'), 'formats': formats,