1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[deviantart:avatar] fix 'index' for avatars without '?' (#5276)

This commit is contained in:
Mike Fährmann 2024-03-04 22:31:35 +01:00
parent 40af26f68b
commit 0cbc910905
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -585,7 +585,9 @@ class DeviantartAvatarExtractor(DeviantartExtractor):
return ()
icon = user["usericon"]
index = icon.rpartition("?")[2]
_, sep, index = icon.rpartition("?")
if not sep:
index = "0"
formats = self.config("formats")
if not formats: