add fallback in case of missing animation without prefix
This commit is contained in:
parent
868117d880
commit
9dd0e4f8ff
11
gameview.py
11
gameview.py
@ -333,22 +333,27 @@ class AOCharMovie(QtGui.QLabel):
|
||||
original_path = test_path(
|
||||
AOpath+"characters/"+p_char+"/"+emote_prefix+p_emote+".gif",
|
||||
AOpath+"characters/"+p_char+"/"+emote_prefix+p_emote+".gif",
|
||||
AOpath+"characters/"+p_char+"/"+p_emote+".gif"
|
||||
AOpath+"characters/"+p_char+"/"+p_emote+".gif",
|
||||
AOpath+"characters/"+p_char+"/(a)"+p_emote+".gif"
|
||||
)
|
||||
alt_path = AOpath+"characters/"+p_char+"/"+p_emote+".png"
|
||||
apng_path = test_path(
|
||||
AOpath+"characters/"+p_char+"/"+emote_prefix+p_emote+".apng",
|
||||
AOpath+"characters/"+p_char+"/"+emote_prefix+"/"+p_emote+".apng",
|
||||
AOpath+"characters/"+p_char+"/"+p_emote+".apng"
|
||||
AOpath+"characters/"+p_char+"/"+p_emote+".apng",
|
||||
AOpath+"characters/"+p_char+"/(a)"+p_emote+".apng"
|
||||
)
|
||||
webp_path = test_path(
|
||||
AOpath+"characters/"+p_char+"/"+emote_prefix+p_emote+".webp",
|
||||
AOpath+"characters/"+p_char+"/"+emote_prefix+"/"+p_emote+".webp",
|
||||
AOpath+"characters/"+p_char+"/"+p_emote+".webp"
|
||||
AOpath+"characters/"+p_char+"/"+p_emote+".webp",
|
||||
AOpath+"characters/"+p_char+"/(a)"+p_emote+".webp"
|
||||
)
|
||||
placeholder_path = AO2XPpath+"themes/default/placeholder.gif"
|
||||
gif_path = ""
|
||||
|
||||
print apng_path, emote_prefix+p_emote
|
||||
|
||||
if apng_path:
|
||||
gif_path = apng_path
|
||||
self.use_pillow = 1
|
||||
|
Loading…
Reference in New Issue
Block a user