mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[adobetv] use compat_str
This commit is contained in:
parent
2c3b9f3570
commit
7079f8ff1f
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
from ..compat import compat_str
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
parse_duration,
|
parse_duration,
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
|
@ -55,7 +56,7 @@ def _real_extract(self, url):
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': str(video_data['id']),
|
'id': compat_str(video_data['id']),
|
||||||
'title': video_data['title'],
|
'title': video_data['title'],
|
||||||
'description': video_data.get('description'),
|
'description': video_data.get('description'),
|
||||||
'thumbnail': video_data.get('thumbnail'),
|
'thumbnail': video_data.get('thumbnail'),
|
||||||
|
@ -105,7 +106,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
self._extract_playlist_entries(self._API_BASE_URL + 'episode/?%s' % query, show_urlname),
|
self._extract_playlist_entries(self._API_BASE_URL + 'episode/?%s' % query, show_urlname),
|
||||||
str(show_data['id']),
|
compat_str(show_data['id']),
|
||||||
show_data['show_name'],
|
show_data['show_name'],
|
||||||
show_data['show_description'])
|
show_data['show_description'])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue