I'm so sorry for the consecutive replies but as I can't seem to be able to edit or delete my previous posts I want to keep you updated on what I discovered:
1. I was wrong with the .mkv and .mp4
It turns our that it was the fact that the "Artist" meta was missing from the files and the /mp4 file had that one. After I added that value to a .mkv file that was previously not working, that one worked too. So i solved this mystery: file meta must have both title and artist for widget to work and update
2. About the cover.. it seems the last update from OBS broke something:
As I looked it up, it turns out that file:/// is no longer supported and managed to "fix" it by changing this line in your widget's js:
JavaScript:
document.getElementById('cover').src = data['cover_url'].replace("file://", "http://absolute") + '?' + Math.random();
This "fix" makes the cover no longer work in browsers but seems to work in OBS just fine. Tho, i think it would be a healthier js if you could, maybe for next update, make the json return the cover url with
http://absolute instead of file:// so that replace is not needed.
3. After playing around some more, I noticed the json does not provide 2 metadata values which Tuna can output as text files (track number and disc number). Could those be added to the json too? :D I actually need 2 more values to add to my widget regardless of which of these are but mentioned those 2 since they already can be exported as txt
Or.. is there a way I could edit the json to include those values too, considering I have limited coding abilities ^^