Japanese Text Album Art in Web Version

Need help? Post your questions here.

Moderator: moderators

Japanese Text Album Art in Web Version

Postby x22 » Tue Mar 31, 2015 8:47 pm

There appears to be a bug in the Japanese Album art when viewing subsonic via the web page. I've narrowed it down to the following: If an album (folder) has the same number of characters as another album, it will show up with the same cover art in the web interface. If you drill down into the album, it will show the correct cover art though. Here's an example:

Image

It also spans across artists as well:

Image

Different artist / but same number of characters:

Image

Version: 5.2.1 (build 4428) – March 4, 2015
Server: jetty-6.1.x, java 1.8.0_31, Windows 8 (85.2 MB / 145.0 MB)
x22
 
Posts: 4
Joined: Tue Mar 31, 2015 8:37 pm

Re: Japanese Text Album Art in Web Version

Postby x22 » Wed Apr 08, 2015 3:10 pm

I wonder if anyone has any ideas about this issue? I suspect that it would be an issue with, say, Chinese music as well. Where albums containing the same number of Unicode Asian script characters will display the same album art. Is there something in the code that perhaps I could modify to account for Unicode album titles? I have a large library of Asian music and there is the same album art showing up all over the place.

Thanks in advance for any guidance!
x22
 
Posts: 4
Joined: Tue Mar 31, 2015 8:37 pm

Re: Japanese Text Album Art in Web Version

Postby yuriks » Wed Mar 09, 2016 7:30 am

I have also hit this bug in 6.0beta1. It appears that any characters outside of the latin-1 (or more likely, whatever is the native codepage for your system) character set gets treated equally. I suspect some bogus conversion somewhere is turning them into '?' or replacement characters, and this gets fed into the hash which is used to look up the album in the thumb cache. When you have two paths that are equal under these constraints (like in your example, but I was able to reproduce it with just "test_あ" vs "test_ħ") this causes a hash collision, and the two albums get assigned random cover art from one of them.

This is a bug in the application, I believe. I tried looking through the chain of code that sets the cover art path and hashes it in the source but couldn't find anything obviously wrong. I imagine that with a debugger (or just some logging) it should be a quick affair to see where the bug gets introduced though.

I couldn't find any official place to report bugs. Does the developer browse the forum? Should I just email him?
yuriks
 
Posts: 1
Joined: Wed Mar 09, 2016 7:05 am


Return to Help

Who is online

Users browsing this forum: No registered users and 26 guests