Skip to content

Commit

Permalink
[Deviantart] [#1776] Remove the "you need session cookies to download…
Browse files Browse the repository at this point in the history
… mature scraps" warning (#1777)
  • Loading branch information
Scripter17 committed Aug 16, 2021
1 parent bb6a130 commit 1f02878
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions gallery_dl/extractor/deviantart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 1f02878

Please sign in to comment.