sspiff / lms-plugin-pyrrha

Pyrrha - Daughter of Pandora
GNU General Public License v2.0
13 stars 4 forks source link

Squeezer Android app shows no plugin icon #22

Closed nabertrand closed 6 months ago

nabertrand commented 6 months ago

With the default plugin settings, a gray square is shown in the Squeezer app for the plugin. Server logs with network.http debugging enabled show the following:

[24-02-20 23:56:15.5904] Slim::Web::HTTP::processHTTP (364) HTTP request: from 192.168.1.95:46718 (Slim::Web::HTTP::ClientConn=GLOB(0x561212dc7460)) for GET HTTP/1.1 /plugins/Pyrrha/images/icon_svg.png
[24-02-20 23:56:15.5909] Slim::Web::HTTP::processHTTP (371) Raw request headers: [
GET /plugins/Pyrrha/images/icon_svg.png HTTP/1.1
Connection: Keep-Alive
Accept-Encoding: gzip
Host: 192.168.1.3:9000
User-Agent: Dalvik/2.1.0 (Linux; U; Android 14; Pixel 6 Build/UQ1A.240105.002)

]
[24-02-20 23:56:15.5916] Slim::Web::HTTP::processHTTP (469) Raw path is [/plugins/Pyrrha/images/icon_svg.png]
[24-02-20 23:56:15.5925] Slim::Web::HTTP::processHTTP (723) Processed request headers: [
GET /plugins/Pyrrha/images/icon_svg.png HTTP/1.1
Connection: Keep-Alive
Accept-Encoding: gzip
Host: 192.168.1.3:9000
User-Agent: Dalvik/2.1.0 (Linux; U; Android 14; Pixel 6 Build/UQ1A.240105.002)
Client-Date: Wed, 21 Feb 2024 05:56:15 GMT

]
[24-02-20 23:56:15.5929] Slim::Web::HTTP::processURL (803) processURL Clients: 192.168.1.163:42484 192.168.1.153:20056
[24-02-20 23:56:15.5937] Slim::Web::HTTP::generateHTTPResponse (1058) Generating response for (png, image/png) plugins/Pyrrha/images/icon_svg.png
[24-02-20 23:56:15.5941] Slim::Web::Template::NoWeb::_generateContentFromFile (66) generating from html/errors/404.html with type: fill
[24-02-20 23:56:15.5945] Slim::Web::Template::NoWeb::fixHttpPath (189) Found path /usr/share/squeezeboxserver/HTML/EN/html/errors/404.html
[24-02-20 23:56:15.5977] Slim::Web::HTTP::processHTTP (756) Response Headers: [
HTTP/1.1 404 Not Found
Cache-Control: max-age=3600
Connection: Keep-Alive
Date: Wed, 21 Feb 2024 05:56:15 GMT
Content-Length: 120
Content-Type: image/png
Expires: Wed, 21 Feb 2024 06:56:15 GMT
X-Time-To-Serve: 0.00835180282592773

]
[24-02-20 23:56:15.5978] Slim::Web::HTTP::processHTTP (759) End request: keepAlive: [1] - waiting for next request for Slim::Web::HTTP::ClientConn=GLOB(0x561212dc7460) on connection = Keep-Alive
[24-02-20 23:56:15.5982] Slim::Web::HTTP::sendResponse (2052) Sent 412 to 192.168.1.95:46718
[24-02-20 23:56:15.5983] Slim::Web::HTTP::sendResponse (2058) No more segments to send to 192.168.1.95:46718
[24-02-20 23:56:15.5986] Slim::Web::HTTP::sendResponse (2014) No segment to send to 192.168.1.95:46718, waiting for next request...
[24-02-20 23:56:15.6042] Slim::Web::HTTP::processHTTP (347) Reading request...
[24-02-20 23:56:15.6044] Slim::Web::HTTP::processHTTP (355) Client at 192.168.1.95:46718 disconnected. (Client closed)
[24-02-20 23:56:15.6045] Slim::Web::HTTP::closeHTTPSocket (2469) Closing HTTP socket Slim::Web::HTTP::ClientConn=GLOB(0x561212dc7460) with 192.168.1.95:46718 (Client closed)
nabertrand commented 6 months ago

Compare to the server.log logs from the web UI:

[24-02-21 00:03:25.7223] Slim::Web::HTTP::processHTTP (364) HTTP request: from 127.0.0.1:56660 (Slim::Web::HTTP::ClientConn=GLOB(0x5612164609c8)) for GET HTTP/1.1 /plugins/Pyrrha/images/icon_svg_50x50.png
[24-02-21 00:03:25.7225] Slim::Web::HTTP::processHTTP (371) Raw request headers: [
GET /plugins/Pyrrha/images/icon_svg_50x50.png HTTP/1.1
Connection: keep-alive
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Host: localhost:9000
Referer: http://localhost:9000/home.html?player=00%3A04%3A20%3A26%3Af0%3A67
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Cookie: Squeezebox-albumView=; Squeezebox-expandPlayerControl=true; Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; Squeezebox-expanded-FAVORITES=1; Squeezebox-enableHiDPI=1.25; csrftoken=UGRRZ1zybDnhQzFMtxvOKgN1Ys8wMjr3FNQaGdoXXoeOXPTOWpuVcWJddWjbQw48; Squeezebox-expanded-updatePlug
ins=1; Squeezebox-expanded-activePlugins=1; Squeezebox-expanded-inactivePlugins=1; Squeezebox-expanded-otherPlugins0=1; Squeezebox-expanded-PLUGINS=1; Squeezebox-expanded-RADIO=1; Squeezebox-playersettings=null; Squeezebox-expanded-otherPlugins1=1; Squeezebox-player=00%3A04%3A20%3A26%3
Af0%3A67; Squeezebox-expanded-MY_MUSIC=1; Squeezebox-advancedsettings=settings/server/debugging.html%3F
Sec-Ch-Ua: "Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Linux"
Sec-Fetch-Dest: image
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: same-origin

]
[24-02-21 00:03:25.7229] Slim::Web::HTTP::processHTTP (469) Raw path is [/plugins/Pyrrha/images/icon_svg_50x50.png]
[24-02-21 00:03:25.7235] Slim::Web::HTTP::processHTTP (723) Processed request headers: [
GET /plugins/Pyrrha/images/icon_svg_50x50.png HTTP/1.1
Connection: keep-alive
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Host: localhost:9000
Referer: http://localhost:9000/home.html?player=00%3A04%3A20%3A26%3Af0%3A67
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Client-Date: Wed, 21 Feb 2024 06:03:25 GMT
Cookie: Squeezebox-albumView=; Squeezebox-expandPlayerControl=true; Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; Squeezebox-expanded-FAVORITES=1; Squeezebox-enableHiDPI=1.25; csrftoken=UGRRZ1zybDnhQzFMtxvOKgN1Ys8wMjr3FNQaGdoXXoeOXPTOWpuVcWJddWjbQw48; Squeezebox-expanded-updatePlug
ins=1; Squeezebox-expanded-activePlugins=1; Squeezebox-expanded-inactivePlugins=1; Squeezebox-expanded-otherPlugins0=1; Squeezebox-expanded-PLUGINS=1; Squeezebox-expanded-RADIO=1; Squeezebox-playersettings=null; Squeezebox-expanded-otherPlugins1=1; Squeezebox-player=00%3A04%3A20%3A26%3
Af0%3A67; Squeezebox-expanded-MY_MUSIC=1; Squeezebox-advancedsettings=settings/server/debugging.html%3F
Sec-Ch-Ua: "Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Linux"
Sec-Fetch-Dest: image
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: same-origin

]
[24-02-21 00:03:25.7238] Slim::Web::HTTP::processURL (803) processURL Clients: 192.168.1.163:42484 192.168.1.153:20056
[24-02-21 00:03:25.7245] Slim::Web::HTTP::generateHTTPResponse (1058) Generating response for (png, image/png) plugins/Pyrrha/images/icon_svg_50x50.png
[24-02-21 00:03:25.7255] Slim::Web::Template::NoWeb::fixHttpPath (189) Found path /usr/share/squeezeboxserver/Plugins/Pyrrha/HTML/EN/plugins/Pyrrha/images/icon_svg.png
[24-02-21 00:03:25.7359] Slim::Web::HTTP::processHTTP (756) Response Headers: [
HTTP/1.1 200 OK
Cache-Control: max-age=86400
Connection: keep-alive
Date: Wed, 21 Feb 2024 06:03:25 GMT
Content-Length: 1098
Content-Type: image/png
Expires: Thu, 22 Feb 2024 06:03:25 GMT
X-Time-To-Serve: 0.0132720470428467

]
[24-02-21 00:03:25.7367] Slim::Web::HTTP::processHTTP (759) End request: keepAlive: [3] - waiting for next request for Slim::Web::HTTP::ClientConn=GLOB(0x5612164609c8) on connection = keep-alive