change results of text.nameext_from_url()
Instead of getting a complete 'filename' from an URL and splitting that
into 'name' and 'extension', the new approach gets rid of the complete
version and renames 'name' to 'filename'. (Using anything other than
{extension} for a filename extension doesn't really work anyway)
Example: "https://example.org/path/filename.ext"
before:
- filename : filename.ext
- name : filename
- extension: ext
now:
- filename : filename
- extension: ext
This commit is contained in:
@@ -22,7 +22,7 @@ class ImgthGalleryExtractor(Extractor):
|
||||
pattern = r"(?:https?://)?imgth\.com/gallery/(\d+)"
|
||||
test = ("http://imgth.com/gallery/37/wallpaper-anime", {
|
||||
"url": "4ae1d281ca2b48952cf5cca57e9914402ad72748",
|
||||
"keyword": "e62d14f20ded393d28c2789fcc34ea2c30bc6a7c",
|
||||
"keyword": "6f8c00d6849ea89d1a028764675ec1fe9dbd87e2",
|
||||
})
|
||||
|
||||
def __init__(self, match):
|
||||
|
||||
Reference in New Issue
Block a user