From 713d59df7d10be1ae6ae32ba323c54542f417262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 18 Jan 2026 22:27:36 +0100 Subject: [PATCH] [newgrounds] remove '_path' attributes They were used to work around 'categorytransfer' changing an extractor instance's subcategory, but the class' subcategory is constant. --- gallery_dl/extractor/newgrounds.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/newgrounds.py b/gallery_dl/extractor/newgrounds.py index f1a07b3e..9a8be8ab 100644 --- a/gallery_dl/extractor/newgrounds.py +++ b/gallery_dl/extractor/newgrounds.py @@ -94,7 +94,7 @@ class NewgroundsExtractor(Extractor): def posts(self): """Return URLs of all relevant post pages""" - return self._pagination(self._path, self.groups[1]) + return self._pagination(self.__class__.subcategory, self.groups[1]) def metadata(self): """Return general metadata""" @@ -426,28 +426,28 @@ class NewgroundsMediaExtractor(NewgroundsExtractor): class NewgroundsArtExtractor(NewgroundsExtractor): """Extractor for all images of a newgrounds user""" - subcategory = _path = "art" + subcategory = "art" pattern = USER_PATTERN + r"/art(?:(?:/page/|/?\?page=)(\d+))?/?$" example = "https://USER.newgrounds.com/art" class NewgroundsAudioExtractor(NewgroundsExtractor): """Extractor for all audio submissions of a newgrounds user""" - subcategory = _path = "audio" + subcategory = "audio" pattern = USER_PATTERN + r"/audio(?:(?:/page/|/?\?page=)(\d+))?/?$" example = "https://USER.newgrounds.com/audio" class NewgroundsMoviesExtractor(NewgroundsExtractor): """Extractor for all movies of a newgrounds user""" - subcategory = _path = "movies" + subcategory = "movies" pattern = USER_PATTERN + r"/movies(?:(?:/page/|/?\?page=)(\d+))?/?$" example = "https://USER.newgrounds.com/movies" class NewgroundsGamesExtractor(NewgroundsExtractor): """Extractor for a newgrounds user's games""" - subcategory = _path = "games" + subcategory = "games" pattern = USER_PATTERN + r"/games(?:(?:/page/|/?\?page=)(\d+))?/?$" example = "https://USER.newgrounds.com/games"