diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-05-25 05:30:15 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-05-25 05:30:15 +0700 |
commit | 418424e5f5f32369a6749408af681d260f6934db (patch) | |
tree | c3fe5ac3ae8085627ee234a60fc48d2dcea516be /youtube_dl | |
parent | 84774661254933dab2a3788485c798bd264b0493 (diff) |
[streamcz] Use compat_str
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/streamcz.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/streamcz.py b/youtube_dl/extractor/streamcz.py index 1b53ee74d..faa360c65 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): @@ -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, |