summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/pyvideo.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/pyvideo.py')
-rw-r--r--yt_dlp/extractor/pyvideo.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/extractor/pyvideo.py b/yt_dlp/extractor/pyvideo.py
index 7b25166..6ae3155 100644
--- a/yt_dlp/extractor/pyvideo.py
+++ b/yt_dlp/extractor/pyvideo.py
@@ -1,7 +1,6 @@
import re
from .common import InfoExtractor
-from ..compat import compat_str
from ..utils import int_or_none
@@ -32,8 +31,8 @@ class PyvideoIE(InfoExtractor):
entries = []
data = self._download_json(
- 'https://raw.githubusercontent.com/pyvideo/data/master/%s/videos/%s.json'
- % (category, video_id), video_id, fatal=False)
+ f'https://raw.githubusercontent.com/pyvideo/data/master/{category}/videos/{video_id}.json',
+ video_id, fatal=False)
if data:
for video in data['videos']:
@@ -43,7 +42,7 @@ class PyvideoIE(InfoExtractor):
entries.append(self.url_result(video_url, 'Youtube'))
else:
entries.append({
- 'id': compat_str(data.get('id') or video_id),
+ 'id': str(data.get('id') or video_id),
'url': video_url,
'title': data['title'],
'description': data.get('description') or data.get('summary'),