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

pull/1787/head
James C. Wise 3 years ago committed by GitHub
parent bb6a130942
commit 1f02878351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -889,15 +889,9 @@ class DeviantartScrapsExtractor(DeviantartExtractor):
) )
cookiedomain = ".deviantart.com" cookiedomain = ".deviantart.com"
cookienames = ("auth", "auth_secure", "userinfo") cookienames = ("auth", "auth_secure", "userinfo")
_warning = True
def deviations(self): def deviations(self):
eclipse_api = DeviantartEclipseAPI(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): for obj in eclipse_api.gallery_scraps(self.user, self.offset):
deviation = obj["deviation"] deviation = obj["deviation"]

Loading…
Cancel
Save