Browse Source

[streamcz] Use compat_str

totalwebcasting
Sergey M․ 11 years ago
parent
commit
418424e5f5
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      youtube_dl/extractor/streamcz.py

+ 5
- 2
youtube_dl/extractor/streamcz.py View File

@ -5,7 +5,10 @@ import re
import json import json
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import int_or_none
from ..utils import (
int_or_none,
compat_str,
)
class StreamCZIE(InfoExtractor): class StreamCZIE(InfoExtractor):
@ -68,7 +71,7 @@ class StreamCZIE(InfoExtractor):
self._sort_formats(formats) self._sort_formats(formats)
return { return {
'id': str(jsonData['episode_id']),
'id': compat_str(jsonData['episode_id']),
'title': self._og_search_title(webpage), 'title': self._og_search_title(webpage),
'thumbnail': jsonData['episode_image_original_url'].replace('//', 'http://'), 'thumbnail': jsonData['episode_image_original_url'].replace('//', 'http://'),
'formats': formats, 'formats': formats,


Loading…
Cancel
Save