diff options
| author | 2024-08-12 02:42:43 -0400 | |
|---|---|---|
| committer | 2024-08-12 02:42:43 -0400 | |
| commit | 5fd4ef85296d95ae7d4547feaf9729ad8ce52893 (patch) | |
| tree | 0836b5465e6276f3001459a7e8e7445d190148ff /gallery_dl/extractor/deviantart.py | |
| parent | ca051dc5aa2bf035a7b82975564abd88d79096ba (diff) | |
| parent | b5e56c51e491b41f9eb6a895459c185788a377e5 (diff) | |
Update upstream source from tag 'upstream/1.27.3'
Update to upstream version '1.27.3'
with Debian dir 79448c635909113c80b387fc5241f5b74402527c
Diffstat (limited to 'gallery_dl/extractor/deviantart.py')
| -rw-r--r-- | gallery_dl/extractor/deviantart.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index a70710c..f3ea4e7 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -12,7 +12,6 @@ from .common import Extractor, Message from .. import text, util, exception from ..cache import cache, memcache import collections -import itertools import mimetypes import binascii import time @@ -246,7 +245,6 @@ class DeviantartExtractor(Extractor): deviation["username"] = deviation["author"]["username"] deviation["_username"] = deviation["username"].lower() - deviation["da_category"] = deviation["category"] deviation["published_time"] = text.parse_int( deviation["published_time"]) deviation["date"] = text.parse_timestamp( @@ -301,15 +299,6 @@ class DeviantartExtractor(Extractor): ) else: needle = '<div usr class="gr">' - catlist = deviation["category_path"].split("/") - categories = " / ".join( - ('<span class="crumb"><a href="{}/{}/"><span>{}</span></a>' - '</span>').format(self.root, cpath, cat.capitalize()) - for cat, cpath in zip( - catlist, - itertools.accumulate(catlist, lambda t, c: t + "/" + c) - ) - ) username = deviation["author"]["username"] urlname = deviation.get("username") or username.lower() header = HEADER_TEMPLATE.format( @@ -318,7 +307,6 @@ class DeviantartExtractor(Extractor): userurl="{}/{}/".format(self.root, urlname), username=username, date=deviation["date"], - categories=categories, ) if needle in html: @@ -624,7 +612,7 @@ class DeviantartAvatarExtractor(DeviantartExtractor): def _make_deviation(self, url, user, index, fmt): return { "author" : user, - "category" : "avatar", + "da_category" : "avatar", "index" : text.parse_int(index), "is_deleted" : False, "is_downloadable": False, @@ -1773,9 +1761,6 @@ HEADER_TEMPLATE = """<div usr class="gr"> <span class="user-symbol regular"></span></span></span>, <span>{date}</span> </li> - <li class="category"> - {categories} - </li> </ul> </div> """ |
