aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/deviantart.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-10-17 03:44:10 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-10-17 03:44:10 -0400
commit6fa3c3d58670e90b140eeaa759773a3fe749321d (patch)
tree1060614e4c8708f59ac27e1ab9e20d6c3e42e806 /gallery_dl/extractor/deviantart.py
parent71693e4757b29b478b4ef7c876c24aa7426a58e1 (diff)
parent78e2d1672e4301497f786cd03637de9ddbc717ac (diff)
Update upstream source from tag 'upstream/1.23.3'
Update to upstream version '1.23.3' with Debian dir 9ed24fbe8a8282e29b08d37ad95a98d733c8d145
Diffstat (limited to 'gallery_dl/extractor/deviantart.py')
-rw-r--r--gallery_dl/extractor/deviantart.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py
index 6897476..cb2aa24 100644
--- a/gallery_dl/extractor/deviantart.py
+++ b/gallery_dl/extractor/deviantart.py
@@ -72,7 +72,7 @@ class DeviantartExtractor(Extractor):
def items(self):
self.api = DeviantartOAuthAPI(self)
- if self.user:
+ if self.user and self.config("group", True):
profile = self.api.user_profile(self.user)
self.group = not profile
if self.group:
@@ -938,11 +938,11 @@ class DeviantartDeviationExtractor(DeviantartExtractor):
def deviations(self):
url = "{}/{}/{}/{}".format(
self.root, self.user, self.type, self.deviation_id)
- appurl = text.extract(self._limited_request(url).text,
- 'property="da:appurl" content="', '"')[0]
- if not appurl:
+ uuid = text.extract(self._limited_request(url).text,
+ '"deviationUuid\\":\\"', '\\')[0]
+ if not uuid:
raise exception.NotFoundError("deviation")
- return (self.api.deviation(appurl.rpartition("/")[2]),)
+ return (self.api.deviation(uuid),)
class DeviantartScrapsExtractor(DeviantartExtractor):