aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/unsplash.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
commit77589574c157fbf651dd251079cd02f6e282e623 (patch)
tree3765f27e6b5fe6c5050fa952347c686021718606 /gallery_dl/extractor/unsplash.py
parentd4b96bc46d493f54e12c06d98115fccaab1b7ed2 (diff)
parent385e4bfb1e426d23417ac788a6f44d639e226c89 (diff)
Update upstream source from tag 'upstream/1.31.2'
Update to upstream version '1.31.2' with Debian dir 4ebe0ca706fc53eceb778881b680572ca5a0231c
Diffstat (limited to 'gallery_dl/extractor/unsplash.py')
-rw-r--r--gallery_dl/extractor/unsplash.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gallery_dl/extractor/unsplash.py b/gallery_dl/extractor/unsplash.py
index b77be95..e2023f3 100644
--- a/gallery_dl/extractor/unsplash.py
+++ b/gallery_dl/extractor/unsplash.py
@@ -74,7 +74,7 @@ class UnsplashExtractor(Extractor):
class UnsplashImageExtractor(UnsplashExtractor):
"""Extractor for a single unsplash photo"""
subcategory = "image"
- pattern = rf"{BASE_PATTERN}/photos/([^/?#]+)"
+ pattern = BASE_PATTERN + r"/photos/([^/?#]+)"
example = "https://unsplash.com/photos/ID"
def photos(self):
@@ -85,7 +85,7 @@ class UnsplashImageExtractor(UnsplashExtractor):
class UnsplashUserExtractor(UnsplashExtractor):
"""Extractor for all photos of an unsplash user"""
subcategory = "user"
- pattern = rf"{BASE_PATTERN}/@(\w+)/?$"
+ pattern = BASE_PATTERN + r"/@(\w+)/?$"
example = "https://unsplash.com/@USER"
def photos(self):
@@ -97,7 +97,7 @@ class UnsplashUserExtractor(UnsplashExtractor):
class UnsplashFavoriteExtractor(UnsplashExtractor):
"""Extractor for all likes of an unsplash user"""
subcategory = "favorite"
- pattern = rf"{BASE_PATTERN}/@(\w+)/likes"
+ pattern = BASE_PATTERN + r"/@(\w+)/likes"
example = "https://unsplash.com/@USER/likes"
def photos(self):
@@ -109,7 +109,7 @@ class UnsplashFavoriteExtractor(UnsplashExtractor):
class UnsplashCollectionExtractor(UnsplashExtractor):
"""Extractor for an unsplash collection"""
subcategory = "collection"
- pattern = rf"{BASE_PATTERN}/collections/([^/?#]+)(?:/([^/?#]+))?"
+ pattern = BASE_PATTERN + r"/collections/([^/?#]+)(?:/([^/?#]+))?"
example = "https://unsplash.com/collections/12345/TITLE"
def __init__(self, match):
@@ -128,7 +128,7 @@ class UnsplashCollectionExtractor(UnsplashExtractor):
class UnsplashSearchExtractor(UnsplashExtractor):
"""Extractor for unsplash search results"""
subcategory = "search"
- pattern = rf"{BASE_PATTERN}/s/photos/([^/?#]+)(?:\?([^#]+))?"
+ pattern = BASE_PATTERN + r"/s/photos/([^/?#]+)(?:\?([^#]+))?"
example = "https://unsplash.com/s/photos/QUERY"
def __init__(self, match):