From b3805b4d71704d25c260a072f00a3f04e7b03541 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 15 Nov 2020 18:19:53 +0000 Subject: [PATCH] Get icon filename --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index ccd32134..4fd08b73 100644 --- a/daemon.py +++ b/daemon.py @@ -4840,9 +4840,10 @@ class PubServer(BaseHTTPRequestHandler): mediaStr = path.split('/icons/')[1] if '/' not in mediaStr: theme = 'default' + iconFilename = mediaStr else: theme = mediaStr.split('/')[0] - iconFilename = mediaStr.split('/')[1] + iconFilename = mediaStr.split('/')[1] mediaFilename = \ baseDir + '/theme/' + theme + '/icons/' + iconFilename if self._etag_exists(mediaFilename):