[imgur] allow longer album hashes
This commit is contained in:
@@ -118,7 +118,7 @@ class ImgurAlbumExtractor(ImgurExtractor):
|
|||||||
filename_fmt = "{category}_{album[hash]}_{num:>03}_{hash}.{extension}"
|
filename_fmt = "{category}_{album[hash]}_{num:>03}_{hash}.{extension}"
|
||||||
archive_fmt = "{album[hash]}_{hash}"
|
archive_fmt = "{album[hash]}_{hash}"
|
||||||
pattern = [r"(?:https?://)?(?:www\.|m\.)?imgur\.com"
|
pattern = [r"(?:https?://)?(?:www\.|m\.)?imgur\.com"
|
||||||
r"/(?:a|gallery)/(\w{5})"]
|
r"/(?:a|gallery)/(\w{7}|\w{5})"]
|
||||||
test = [
|
test = [
|
||||||
("https://imgur.com/a/TcBmP", {
|
("https://imgur.com/a/TcBmP", {
|
||||||
"url": "ce3552f550a5b5316bd9c7ae02e21e39f30c0563",
|
"url": "ce3552f550a5b5316bd9c7ae02e21e39f30c0563",
|
||||||
@@ -152,6 +152,9 @@ class ImgurAlbumExtractor(ImgurExtractor):
|
|||||||
("https://imgur.com/gallery/eD9CT", { # large album
|
("https://imgur.com/gallery/eD9CT", { # large album
|
||||||
"url": "4ee94de31ff26be416271bc0b1ea27b9349c9937",
|
"url": "4ee94de31ff26be416271bc0b1ea27b9349c9937",
|
||||||
}),
|
}),
|
||||||
|
("https://imgur.com/a/RhJXhVT/all", { # 7 character album hash
|
||||||
|
"url": "695ef0c950023362a0163ee5041796300db76674",
|
||||||
|
}),
|
||||||
("https://imgur.com/a/TcBmQ", {
|
("https://imgur.com/a/TcBmQ", {
|
||||||
"exception": exception.NotFoundError,
|
"exception": exception.NotFoundError,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ from gallery_dl import extractor, job, config, exception
|
|||||||
# these don't work on travis-ci
|
# these don't work on travis-ci
|
||||||
TRAVIS_SKIP = {
|
TRAVIS_SKIP = {
|
||||||
"exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie",
|
"exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie",
|
||||||
"archivedmoe", "archiveofsins", "thebarchive", "sankaku", "idolcomplex",
|
"archivedmoe", "archiveofsins", "thebarchive", "fireden",
|
||||||
|
"sankaku", "idolcomplex",
|
||||||
}
|
}
|
||||||
|
|
||||||
# temporary issues, etc.
|
# temporary issues, etc.
|
||||||
BROKEN = {
|
BROKEN = {
|
||||||
"dokireader", # SSL cert expired
|
"pixiv", # /users/<id>/favorite_works API endpoint is gone
|
||||||
"pixiv", # API requests sometimes fail
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user