diff options
| author | 2020-11-13 19:17:03 -0500 | |
|---|---|---|
| committer | 2020-11-13 19:17:03 -0500 | |
| commit | 209a3c800871cd68edd2bc7ae661a24ecd496d2d (patch) | |
| tree | cf81c47ab57540b58292295c7d5641e9d2668291 /gallery_dl/extractor/deviantart.py | |
| parent | 5dc7d6f5902ddaee5223d041d5c10060f0c72430 (diff) | |
New upstream version 1.15.3.upstream/1.15.3
Diffstat (limited to 'gallery_dl/extractor/deviantart.py')
| -rw-r--r-- | gallery_dl/extractor/deviantart.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index e40ec51..456a173 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -165,11 +165,12 @@ class DeviantartExtractor(Extractor): # filename metadata alphabet = "0123456789abcdefghijklmnopqrstuvwxyz" + deviation["index_base36"] = util.bencode(deviation["index"], alphabet) sub = re.compile(r"\W").sub deviation["filename"] = "".join(( sub("_", deviation["title"].lower()), "_by_", sub("_", deviation["author"]["username"].lower()), "-d", - util.bencode(deviation["index"], alphabet), + deviation["index_base36"], )) @staticmethod |
