From 9dd0e4f8ff52fbed5d38b9261e86ab32bf853bfe Mon Sep 17 00:00:00 2001 From: cidoku Date: Thu, 12 Jun 2025 16:50:34 -0400 Subject: [PATCH] add fallback in case of missing animation without prefix --- gameview.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gameview.py b/gameview.py index 8864f11..c540dc8 100644 --- a/gameview.py +++ b/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