From 8a05ffa9c0426eee62f82776541c0519e66ccadf Mon Sep 17 00:00:00 2001 From: Kevin G Date: Sun, 9 Jun 2019 03:05:00 -0700 Subject: [PATCH] [unauthorizedtv] Use compat_str --- youtube_dl/extractor/unauthorizedtv.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,