[unauthorizedtv] Use compat_str
This commit is contained in:
parent
b83975fb48
commit
8a05ffa9c0
@ -3,6 +3,10 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
from ..compat import (
|
||||||
|
compat_str,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class UnauthorizedTvIE(InfoExtractor):
|
class UnauthorizedTvIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?unauthorized\.tv/programs/(?P<id>.+)'
|
_VALID_URL = r'https?://(?:www\.)?unauthorized\.tv/programs/(?P<id>.+)'
|
||||||
@ -39,7 +43,7 @@ class UnauthorizedTvIE(InfoExtractor):
|
|||||||
headers=headers
|
headers=headers
|
||||||
)
|
)
|
||||||
|
|
||||||
chapters = '&ids[]='.join([str(x) for x in chaptersJson['chapters']])
|
chapters = '&ids[]='.join([compat_str(x) for x in chaptersJson['chapters']])
|
||||||
|
|
||||||
metadata = self._download_json(
|
metadata = self._download_json(
|
||||||
'https://www.unauthorized.tv/api/chapters?ids[]=%s' % chapters,
|
'https://www.unauthorized.tv/api/chapters?ids[]=%s' % chapters,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user