mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 14:59:29 +01:00
[streamcz] Use compat_str
This commit is contained in:
parent
8477466125
commit
418424e5f5
@ -5,7 +5,10 @@
|
|||||||
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 @@ def _real_extract(self, url):
|
|||||||
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…
Reference in New Issue
Block a user