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

This commit is contained in:
James C. Wise
2021-08-16 16:50:53 -04:00
committed by GitHub
parent bb6a130942
commit 1f02878351

View File

@@ -889,15 +889,9 @@ 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"]