mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-17 09:58:29 +00:00
[ie/rule34video] Set format height instead of quality
This commit is contained in:
parent
9d46daeff7
commit
2e7b3d38b9
@ -73,12 +73,12 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
|
|
||||||
for mobj in re.finditer(r'<a[^>]+href="(?P<video_url>[^"]+download=true[^"]+)".*>(?P<ext>[^\s]+) (?P<quality>[^<]+)p</a>', webpage):
|
for mobj in re.finditer(r'<a[^>]+href="(?P<video_url>[^"]+download=true[^"]+)".*>(?P<ext>[^\s]+) (?P<height>[^<]+)p</a>', webpage):
|
||||||
url, ext, quality = mobj.groups()
|
url, ext, height = mobj.groups()
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': url,
|
'url': url,
|
||||||
'ext': ext.lower(),
|
'ext': ext.lower(),
|
||||||
'quality': quality,
|
'height': int_or_none(height),
|
||||||
})
|
})
|
||||||
|
|
||||||
categories, creators, uploader, uploader_url = [None] * 4
|
categories, creators, uploader, uploader_url = [None] * 4
|
||||||
|
Loading…
Reference in New Issue
Block a user