mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-26 21:59:08 +01:00
Removed deprecated constructions to satisfy DeprecationWarnings when running tests. Tests now pass.
This commit is contained in:
parent
e719bf1fbb
commit
10834f196d
1 changed files with 1 additions and 2 deletions
|
@ -50,7 +50,7 @@ class AlphaPornoIE(InfoExtractor):
|
|||
video_id = self._search_regex(
|
||||
r'video_id=(\d+)\b', webpage, 'video id')
|
||||
formats = []
|
||||
joined_url = urljoin(urlh.geturl(), rf'/get_file/\d.+?/{video_id}/{video_id}_(\w+)\..+?')
|
||||
joined_url = urljoin(urlh.url, rf'/get_file/\d.+?/{video_id}/{video_id}_(\w+)\..+?')
|
||||
for video_url, res in re.findall(rf'''({joined_url})(?:'|"|\b)\s''', webpage):
|
||||
fmt = {
|
||||
'format_id': f'f{res}',
|
||||
|
@ -58,7 +58,6 @@ class AlphaPornoIE(InfoExtractor):
|
|||
}
|
||||
fmt.update(parse_resolution(res) or {})
|
||||
formats.append(fmt)
|
||||
self._sort_formats(formats)
|
||||
info['formats'] = formats
|
||||
|
||||
title = (
|
||||
|
|
Loading…
Reference in a new issue