[philomena] download 'full' URLs (#6922)
'view_url' URLs sometimes result in 404 errors
This commit is contained in:
@@ -60,7 +60,7 @@ __tests__ = (
|
||||
"#comment" : "svg (#5643)",
|
||||
"#category": ("philomena", "derpibooru", "post"),
|
||||
"#class" : philomena.PhilomenaPostExtractor,
|
||||
"#urls" : "https://derpicdn.net/img/view/2024/4/1/3334658__safe_alternate+version_artist-colon-jp_derpibooru+exclusive_twilight+sparkle_alicorn_pony_amending+fences_g4_my+little+pony-colon-+friendship+is+magic_.svg",
|
||||
"#urls" : "https://derpicdn.net/img/view/2024/4/1/3334658.svg",
|
||||
"#sha1_content": "eec5adf02e2a4fe83b9211c0444d57dc03e21f50",
|
||||
|
||||
"extension": "svg",
|
||||
|
||||
31
test/results/philomena.py
Normal file
31
test/results/philomena.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
from gallery_dl.extractor import philomena
|
||||
|
||||
|
||||
__tests__ = (
|
||||
{
|
||||
"#url" : "philomena:https://manebooru.art/307071",
|
||||
"#comment" : "'view_url' yields 404 (#6922)",
|
||||
"#category": ("philomena", "manebooru.art", "post"),
|
||||
"#class" : philomena.PhilomenaPostExtractor,
|
||||
"#urls" : "https://static.manebooru.art/img/view/2020/10/27/307071.png",
|
||||
"#sha1_content": "82c21bfb2675449893fa4b2546546f404019b3c8",
|
||||
|
||||
"date" : "dt:2020-10-27 11:58:40"
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "philomena:https://ponerpics.org/images/1",
|
||||
"#category": ("philomena", "ponerpics.org", "post"),
|
||||
"#class" : philomena.PhilomenaPostExtractor,
|
||||
"#urls" : "https://ponerpics.org/img/view/2012/1/2/1.png",
|
||||
|
||||
"date" : "dt:2012-01-02 03:12:33"
|
||||
},
|
||||
|
||||
)
|
||||
Reference in New Issue
Block a user