From a12ce2bb415c0879a1cf01f0a73f7662c80e2e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 5 Oct 2022 21:30:08 +0200 Subject: [PATCH] [deviantart] fix 'deviation' extraction (#2981) --- gallery_dl/extractor/deviantart.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index 68974769..39aa71d8 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -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):