1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[imgur] match mobile urls (m.imgur.com)

This commit is contained in:
Mike Fährmann 2016-10-29 19:46:34 +02:00
parent 04b1519779
commit e0b3339107
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -17,7 +17,7 @@ class ImgurAlbumExtractor(Extractor):
subcategory = "album"
directory_fmt = ["{category}", "{album-key} - {title}"]
filename_fmt = "{category}_{album-key}_{num:>03}_{hash}{ext}"
pattern = [r"(?:https?://)?(?:www\.)?imgur\.com/(?:a|gallery)/([^/?&#]+)"]
pattern = [r"(?:https?://)?(?:m\.|www\.)?imgur\.com/(?:a|gallery)/([^/?&#]+)"]
test = [("https://imgur.com/a/TcBmP", {
"url": "ce3552f550a5b5316bd9c7ae02e21e39f30c0563",
"keyword": "21723f47bf4a42599d39fbf29c5f79323d420898",