X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/db50f19d76c6870a5a13d0cab9287d684fd7449a..add96eb9f84cfffe85682bf2fb85135746994ee8:/yt_dlp/extractor/theintercept.py diff --git a/yt_dlp/extractor/theintercept.py b/yt_dlp/extractor/theintercept.py index 99f0d42ef..dcdca8f81 100644 --- a/yt_dlp/extractor/theintercept.py +++ b/yt_dlp/extractor/theintercept.py @@ -1,5 +1,4 @@ from .common import InfoExtractor -from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, @@ -20,7 +19,7 @@ class TheInterceptIE(InfoExtractor): 'timestamp': 1450429239, 'upload_date': '20151218', 'comment_count': int, - } + }, }] def _real_extract(self, url): @@ -35,8 +34,8 @@ def _real_extract(self, url): if post['slug'] == display_id: return { '_type': 'url_transparent', - 'url': 'jwplatform:%s' % post['fov_videoid'], - 'id': compat_str(post['ID']), + 'url': 'jwplatform:{}'.format(post['fov_videoid']), + 'id': str(post['ID']), 'display_id': display_id, 'title': post['title'], 'description': post.get('excerpt'),