summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/r7.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/r7.py')
-rw-r--r--yt_dlp/extractor/r7.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/r7.py b/yt_dlp/extractor/r7.py
index 36f0b52..79a4c0a 100644
--- a/yt_dlp/extractor/r7.py
+++ b/yt_dlp/extractor/r7.py
@@ -42,7 +42,7 @@ class R7IE(InfoExtractor):
video_id = self._match_id(url)
video = self._download_json(
- 'http://player-api.r7.com/video/i/%s' % video_id, video_id)
+ f'http://player-api.r7.com/video/i/{video_id}', video_id)
title = video['title']
@@ -98,7 +98,7 @@ class R7ArticleIE(InfoExtractor):
@classmethod
def suitable(cls, url):
- return False if R7IE.suitable(url) else super(R7ArticleIE, cls).suitable(url)
+ return False if R7IE.suitable(url) else super().suitable(url)
def _real_extract(self, url):
display_id = self._match_id(url)
@@ -109,4 +109,4 @@ class R7ArticleIE(InfoExtractor):
r'<div[^>]+(?:id=["\']player-|class=["\']embed["\'][^>]+id=["\'])([\da-f]{24})',
webpage, 'video id')
- return self.url_result('http://player.r7.com/video/i/%s' % video_id, R7IE.ie_key())
+ return self.url_result(f'http://player.r7.com/video/i/{video_id}', R7IE.ie_key())