diff --git a/youtube_dl/extractor/unauthorizedtv.py b/youtube_dl/extractor/unauthorizedtv.py index e68bbc775..67e1013d3 100644 --- a/youtube_dl/extractor/unauthorizedtv.py +++ b/youtube_dl/extractor/unauthorizedtv.py @@ -3,6 +3,10 @@ from __future__ import unicode_literals from .common import InfoExtractor +from ..compat import ( + compat_str, +) + class UnauthorizedTvIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?unauthorized\.tv/programs/(?P.+)' @@ -39,7 +43,7 @@ class UnauthorizedTvIE(InfoExtractor): 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( 'https://www.unauthorized.tv/api/chapters?ids[]=%s' % chapters,