Hi luigimercurio,
First of all, many thanks for the great component. fb2k+m-TAGS combination is really essential for me to organise my huge collection. Everything has worked nicely for me so far, until it comes to album art.
I have an m-TAGS file like below
[
{
"@" : "01. Track 1.mp3",
"TITLE" : "Track 1",
"TRACKNUMBER" : "1",
"ALBUM" : "Some album",
"ARTIST" : "Some artist",
"DATE" : "2017"
},
{
"@" : "02. Track 2.mp3",
"TITLE" : "Track 2",
"TRACKNUMBER" : "2"
}
]
named as myalbum.tags stored in the same folder as *.mp3 files. I also have a JPEG file named myalbum.tags.icon.bin stored in the same folder. And I load the tag file to play in foobar2000. The music plays fine. I have an Album Art Viewer panel that I set to display Icon.
The problem is: when I double-click on Track 1 to play it, the icon image is shown. But when I select Track 2 (or any other track if the tag file contains more, Track 1 is still playing), [no image] is shown instead of the image in myalbum.tags.icon.bin. When I select back Track 1 (it is still playing), the album art doesn't appear again ( I guess same issue as Replies 249 here and 255-257 here). When I right-click on any track in the album (Track 1 is still playing) to open the Context Menu and choose Tagging > Manage attached pictures, I will get the error message Attached editing picture failure: File is already in use (same issue as Replies 230 here and 261 here, and probably 323 above).
I know you gave some explanation about the locking (here and here) but what I find strange is that if another track other than Track 1 is playing, I don't have any problem, everything works as I expect (album art shown on selecting any track in the album, and I can right-click to manage attached pictures). So the problem is really with the first track in the tag file. If fb2k locks file during playback, why does locking only happen to first track in the tag file, given that the actual media files are being played?
After realising that the album art problem only happens to the first track in the tag file, I thought of creating a dummy track
[{},
{
"@" : "01. Track 1.mp3",
"TITLE" : "Track 1",
"TRACKNUMBER" : "1",
"ALBUM" : "Some album",
"ARTIST" : "Some artist",
"DATE" : "2017"
},
{
"@" : "02. Track 2.mp3",
"TITLE" : "Track 2",
"TRACKNUMBER" : "2"
}
]
This will of course add an unplayable dummy track to the playlist when loaded to the player. I can then remove this dummy track from the playlist and play all tracks as normal. But this is really annoying when I load many albums to the playlist at once. I use Edit > Remove dead items but it doesn't work.
Then I saw this suggestion (Reply 275) of hiding referred media inside the tag file. If such implementation is possible, I can hide my dummy first track. Any update on that?
You also mentioned "Pure" m-TAGS files. Could that be any help?
I wouldn't have any of the above problems if I could specify a path to my icon file. fb2k only allows path to Front, Back, Disc covers and Artist image, yet the Album Art Viewer panel can display 5, including Icon. In case you wonder why I have to use Icon, I resort to it as a solution to my problem on multiple front album covers here
Any idea to properly display Icon album art when playing media files via m-TAGS is much appreciated.