summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/mojvideo.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/mojvideo.py')
-rw-r--r--yt_dlp/extractor/mojvideo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/mojvideo.py b/yt_dlp/extractor/mojvideo.py
index d47ad07..6bc362a 100644
--- a/yt_dlp/extractor/mojvideo.py
+++ b/yt_dlp/extractor/mojvideo.py
@@ -17,7 +17,7 @@ class MojvideoIE(InfoExtractor):
'title': 'V avtu pred mano rdečelaska - Alfi Nipič',
'thumbnail': r're:^http://.*\.jpg$',
'duration': 242,
- }
+ },
}
def _real_extract(self, url):
@@ -27,12 +27,12 @@ class MojvideoIE(InfoExtractor):
# XML is malformed
playerapi = self._download_webpage(
- 'http://www.mojvideo.com/playerapi.php?v=%s&t=1' % video_id, display_id)
+ f'http://www.mojvideo.com/playerapi.php?v={video_id}&t=1', display_id)
if '<error>true</error>' in playerapi:
error_desc = self._html_search_regex(
r'<errordesc>([^<]*)</errordesc>', playerapi, 'error description', fatal=False)
- raise ExtractorError('%s said: %s' % (self.IE_NAME, error_desc), expected=True)
+ raise ExtractorError(f'{self.IE_NAME} said: {error_desc}', expected=True)
title = self._html_extract_title(playerapi)
video_url = self._html_search_regex(