Upgrade yt_dlp and download script
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user