Changed how the artwork gets sent to the API, this is done by sending it separately, so now we have 2 endpoints, its not the best but, it works for now :)

This commit is contained in:
2025-06-21 22:53:47 -07:00
parent 45a942b63e
commit 4ccf5edd2e
4 changed files with 54 additions and 40 deletions

View File

@ -88,8 +88,10 @@
<body>
<div class="container">
<h1><span title="Apple Music Now Playing">AmNP</span> Settings (Beta)</h1>
<label for="endpoint">POST Endpoint:</label>
<label for="endpoint">Now playing Endpoint:</label>
<input type="text" id="endpoint" placeholder="https://zorpzeep.blorp/wp-json/nowplaying/v1/update" autocomplete="off" spellcheck="false"/>
<label for="artworkEndpoint">Artwork Endpoint:</label>
<input type="text" id="artworkEndpoint" placeholder="https://zorpzeep.blorp/wp-json/nowplaying/v1/update/art" autocomplete="off" spellcheck="false"/>
<label for="token">Bearer Token:</label>
<input type="text" id="token" placeholder="73757065725f7365637572655f746f6b656e" autocomplete="off" spellcheck="false"/>
<button id="save">Save</button>