mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-15 12:45:27 +00:00
[cleanup] Misc (#12194)
Closes #12098, Closes #12133 Authored by: seproDev, bashonly, lonble, pjrobertson Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> Co-authored-by: Lonble <74650029+lonble@users.noreply.github.com> Co-authored-by: Patrick Robertson <robertson.patrick@gmail.com>
This commit is contained in:
@@ -34,7 +34,6 @@ from ..utils import (
|
||||
parse_qs,
|
||||
parse_resolution,
|
||||
qualities,
|
||||
sanitize_url,
|
||||
smuggle_url,
|
||||
srt_subtitles_timecode,
|
||||
str_or_none,
|
||||
@@ -1923,7 +1922,7 @@ class BiliBiliDynamicIE(InfoExtractor):
|
||||
video_url = traverse_obj(post_data, (
|
||||
'data', 'item', (None, 'orig'), 'modules', 'module_dynamic',
|
||||
(('major', ('archive', 'pgc')), ('additional', ('reserve', 'common'))),
|
||||
'jump_url', {url_or_none}, any, {sanitize_url}))
|
||||
'jump_url', {url_or_none}, any, {self._proto_relative_url}))
|
||||
if not video_url or (self.suitable(video_url) and post_id == self._match_id(video_url)):
|
||||
raise ExtractorError('No valid video URL found', expected=True)
|
||||
return self.url_result(video_url)
|
||||
|
||||
Reference in New Issue
Block a user