You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In webapp/alpha/m.js, function openMetadataModal(), there is a section which prepares the URL to be displayed as the "File path" here:
In my instance, I have found that there is a missing forward slash near line 559. I had to modify the code like this in order to be able to click on album art when displaying the song info in order to not get an error. See my diff below:
diff --git a/webapp/alpha/m.js b/webapp/alpha/m.js
index e5005de..686d92e 100644
--- a/webapp/alpha/m.js
+++ b/webapp/alpha/m.js
@@ -556,7 +556,10 @@ function openMetadataModal(metadata, fp) {
document.getElementById('meta--rating').innerHTML = metadata.rating;
document.getElementById('meta--rg').innerHTML = metadata['replaygain-track'];
document.getElementById('meta--fp').innerHTML = fp;
- document.getElementById('meta--fp').href = 'media' + fp;
+ // this should really be 'media/' otherwise you get an error when trying to click the URL
+ // this is displayed when you click the album art when playing a song or go to the song info
+ document.getElementById('meta--fp').href = 'media/' + fp;
document.getElementById('meta--aa').innerHTML = 'album-art/' + metadata['album-art'];
if (metadata['album-art']) {
document.getElementById('meta--aa').href = `album-art/${metadata['album-art']}`;
The text was updated successfully, but these errors were encountered:
ctracy
changed the title
error when trying to click the URL that is given for displaying album art, e.g. when looking at song info
error when trying to click the "File path" URL that is given when looking at song info
May 14, 2023
In webapp/alpha/m.js, function openMetadataModal(), there is a section which prepares the URL to be displayed as the "File path" here:
In my instance, I have found that there is a missing forward slash near line 559. I had to modify the code like this in order to be able to click on album art when displaying the song info in order to not get an error. See my diff below:
The text was updated successfully, but these errors were encountered: