mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[rule34us] make 'file_url' extraction more robust (#6289)
update to b64bede9ae
This commit is contained in:
parent
cfb7b3dd71
commit
a389b8aeaa
@ -36,10 +36,8 @@ class Rule34usExtractor(BooruExtractor):
|
||||
"score" : text.extract(extr('Score: ', '> - <'), ">", "<")[0],
|
||||
"width" : extr('Size: ', 'w'),
|
||||
"height" : extr(' x ', 'h'),
|
||||
"" : extr('</script>', '</div></center>'),
|
||||
"file_url": extr(' src="', '"'),
|
||||
"file_url": extr('<source src="', '"') or extr('<img src="', '"'),
|
||||
}
|
||||
del post[""]
|
||||
|
||||
url = post["file_url"]
|
||||
if "//video-cdn1." in url:
|
||||
|
Loading…
Reference in New Issue
Block a user