diff options
| author | 2023-10-03 18:31:58 -0400 | |
|---|---|---|
| committer | 2023-10-03 18:31:58 -0400 | |
| commit | b8758ecd073910ce3220b2e68399147b425c37b8 (patch) | |
| tree | d6aee20213508c8f425cbacb3d714367eca904c5 /gallery_dl/extractor/imgbox.py | |
| parent | e2f67519f8c1750a71aab3dc56b8345fff21bac5 (diff) | |
New upstream version 1.26.0.upstream/1.26.0
Diffstat (limited to 'gallery_dl/extractor/imgbox.py')
| -rw-r--r-- | gallery_dl/extractor/imgbox.py | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/gallery_dl/extractor/imgbox.py b/gallery_dl/extractor/imgbox.py index 530c4e1..7069717 100644 --- a/gallery_dl/extractor/imgbox.py +++ b/gallery_dl/extractor/imgbox.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- -# Copyright 2014-2019 Mike Fährmann +# Copyright 2014-2023 Mike Fährmann # # 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. -"""Extract images from galleries at https://imgbox.com/""" +"""Extractors for https://imgbox.com/""" from .common import Extractor, Message, AsynchronousMixin from .. import text, exception @@ -63,20 +63,7 @@ class ImgboxGalleryExtractor(AsynchronousMixin, ImgboxExtractor): filename_fmt = "{num:>03}-{filename}.{extension}" archive_fmt = "{gallery_key}_{image_key}" pattern = r"(?:https?://)?(?:www\.)?imgbox\.com/g/([A-Za-z0-9]{10})" - test = ( - ("https://imgbox.com/g/JaX5V5HX7g", { - "url": "da4f15b161461119ee78841d4b8e8d054d95f906", - "keyword": "4b1e62820ac2c6205b7ad0b6322cc8e00dbe1b0c", - "content": "d20307dc8511ac24d688859c55abf2e2cc2dd3cc", - }), - ("https://imgbox.com/g/cUGEkRbdZZ", { - "url": "76506a3aab175c456910851f66227e90484ca9f7", - "keyword": "fb0427b87983197849fb2887905e758f3e50cb6e", - }), - ("https://imgbox.com/g/JaX5V5HX7h", { - "exception": exception.NotFoundError, - }), - ) + example = "https://imgbox.com/g/12345abcde" def __init__(self, match): ImgboxExtractor.__init__(self, match) @@ -106,16 +93,7 @@ class ImgboxImageExtractor(ImgboxExtractor): subcategory = "image" archive_fmt = "{image_key}" pattern = r"(?:https?://)?(?:www\.)?imgbox\.com/([A-Za-z0-9]{8})" - test = ( - ("https://imgbox.com/qHhw7lpG", { - "url": "ee9cdea6c48ad0161c1b5f81f6b0c9110997038c", - "keyword": "dfc72310026b45f3feb4f9cada20c79b2575e1af", - "content": "0c8768055e4e20e7c7259608b67799171b691140", - }), - ("https://imgbox.com/qHhw7lpH", { - "exception": exception.NotFoundError, - }), - ) + example = "https://imgbox.com/1234abcd" def __init__(self, match): ImgboxExtractor.__init__(self, match) |
