Revert "[Deviantart] [#1776] Remove the "you need session cookies to download mature scraps" warning (#1777)"

This reverts commit 1f02878351.

Mature scraps do yet again require cookies.
pull/3155/head
Mike Fährmann 2 years ago
parent 460095adca
commit 2a1cb403ee
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -960,9 +960,15 @@ class DeviantartScrapsExtractor(DeviantartExtractor):
)
cookiedomain = ".deviantart.com"
cookienames = ("auth", "auth_secure", "userinfo")
_warning = True
def deviations(self):
eclipse_api = DeviantartEclipseAPI(self)
if self._warning:
DeviantartScrapsExtractor._warning = False
if not self._check_cookies(self.cookienames):
self.log.warning(
"No session cookies set: Unable to fetch mature scraps.")
for obj in eclipse_api.gallery_scraps(self.user, self.offset):
deviation = obj["deviation"]

Loading…
Cancel
Save