diff options
| author | 2024-06-22 21:19:42 -0400 | |
|---|---|---|
| committer | 2024-06-22 21:19:42 -0400 | |
| commit | 408cf4d7719de63b8175bd9b69a7484bc6dba1f8 (patch) | |
| tree | eb6ec27c12186e38a97673ec9a1332853aa44175 /gallery_dl/extractor/deviantart.py | |
| parent | 265fafbf1b3d468d4087a5229ca4bad0a651db23 (diff) | |
| parent | 80e39a8fc7de105510cbbdca8507f2a4b8c9e01d (diff) | |
Update upstream source from tag 'upstream/1.27.1'
Update to upstream version '1.27.1'
with Debian dir 786b4d48b451c0be3e4e14b3739202bb3965566e
Diffstat (limited to 'gallery_dl/extractor/deviantart.py')
| -rw-r--r-- | gallery_dl/extractor/deviantart.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index 993885a..2199cc8 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -1730,15 +1730,16 @@ class DeviantartEclipseAPI(): url = "{}/{}/about".format(self.extractor.root, user) page = self.request(url).text - gruserid, pos = text.extract(page, ' data-userid="', '"') + gruser_id = text.extr(page, ' data-userid="', '"') - pos = page.find('\\"type\\":\\"watching\\"', pos) + pos = page.find('\\"name\\":\\"watching\\"') if pos < 0: - raise exception.NotFoundError("module") - moduleid = text.rextract(page, '\\"id\\":', ',', pos)[0].strip('" ') + raise exception.NotFoundError("'watching' module ID") + module_id = text.rextract( + page, '\\"id\\":', ',', pos)[0].strip('" ') self._fetch_csrf_token(page) - return gruserid, moduleid + return gruser_id, module_id def _fetch_csrf_token(self, page=None): if page is None: |
