[deviantart:stash] recognize 'deviantart.com/stash/…' URLs

This commit is contained in:
Mike Fährmann
2024-03-15 18:14:55 +01:00
parent 76683c5f5c
commit 5716430c35
2 changed files with 9 additions and 2 deletions

View File

@@ -678,7 +678,8 @@ class DeviantartStashExtractor(DeviantartExtractor):
"""Extractor for sta.sh-ed deviations"""
subcategory = "stash"
archive_fmt = "{index}.{extension}"
pattern = r"(?:https?://)?sta\.sh/([a-z0-9]+)"
pattern = (r"(?:https?://)?(?:(?:www\.)?deviantart\.com/stash|sta\.sh)"
r"/([a-z0-9]+)")
example = "https://sta.sh/abcde"
skip = Extractor.skip