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:
parent
40af26f68b
commit
0cbc910905
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user