darkfeline / cantata

Automatically exported from code.google.com/p/cantata
GNU General Public License v3.0
0 stars 0 forks source link

Not all artwork appears in "Albums" view #540

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using Windows Cantata 1.4.1. The "Albums" view is set to Icon/List style, 
Medium Covers, sorted by album. Only some of the covers are appearing; most are 
just showing the generic image. When I right-click an album and go to "Set 
image", it shows the correct image (loaded from the filesystem) under "Current 
Cover". If I select a remote image, like from Last.fm, it appears in the Albums 
view. (Incidentally, there doesn't seem to be any way to go back to the 
filesystem/local cover image once I've selected a remote image, but perhaps 
that should be filed under a different Issue).

Original issue reported on code.google.com by chow...@gmail.com on 13 Sep 2014 at 9:52

GoogleCodeExporter commented 9 years ago
What are the following set to:

1. Music folder in Cantata
2. music_directory in mpd.conf?
3. In the 'Files' config page, have you elected to save downloaded covers in 
the music folder?

Do you run MPD on windows? Or are you connecting to a server elsewhere? If its 
on a remote server, I assume the servers filesystem is mounted/mapped under 
windows?

Anyway, please perform the following:

It sounds like you are saying the answer to both of these is 'no' If so, please 
stop cantata, and the do the following:

    1. Run cmd.exe from start menu.
    2. cd c:\Program Files\Cantata
    3. set CANTATA_DEBUG=4
    4. cantata.exe

The recreate the issue - i.e. load the albums view, and scroll so that one 
cover is missing, then attempt to set a cover for this. This will cause all MPD 
communications to be logged to 
C:\Users\USERNAME\AppData\Local\mpd\cantata\cache\cantata.log Please attach 
this file here.

Also, please state which cover it was that you were attempting to set - and the 
actual location of the disk based cover.

Original comment by craig.p....@gmail.com on 14 Sep 2014 at 7:05

GoogleCodeExporter commented 9 years ago
It seems that the covers appear after a while, like a few hours. In some cases, 
though, it uses the Last.fm version even if there's a local file to choose from 
(and it says it's using the local version when I go to Set Image). Should I 
file a different issue for that, or put the debug info here?

Answers to your questions:

1. R:\Audio
2. /array/audio
3. No.

MPD is running on a Linux server. I have the audio folder mapped to the R: 
drive in Windows via Samba.

Original comment by chow...@gmail.com on 15 Sep 2014 at 2:45

GoogleCodeExporter commented 9 years ago
This sounds line an issue with your setup. Anyway, without the log file that I 
asked for - there is not much I can do.

No, no other bug report is needed. I need the log file.

Original comment by craig.p....@gmail.com on 15 Sep 2014 at 10:42

GoogleCodeExporter commented 9 years ago
"Aladdin Sane [30th Anniversary Edition]" is one of the albums that is showing 
the wrong image.

Original comment by chow...@gmail.com on 15 Sep 2014 at 4:50

Attachments:

GoogleCodeExporter commented 9 years ago
OK, the cover displayed in the artists/albums views is taken from Cantata's 
cache of scaled covers. I guess, for you this is the wrong one? If so, perhaps 
you ran cantata when it could not access the mapped drive - so downloaded a 
cover from last.fm. This would the be scaled for the screen, and saved to the 
covers-scaled cache folder.

Now, when you run the cover dialog - and cantata *can* access your mapped drive 
- it finds the local cover, so shows that.

I can see where the confusion comes from, but I'm not sure exactly what cantata 
can do about it.

When locating a cover, Cantata will first look in the folder containing the 
track (if it can access the folder), then it will look in its cache. But, once 
a cover is found, it is scaled for the UI and this scaled version is cached.

So, when the albums view is drawn, it goes to the scaled cache first. Finds a 
cover, and uses that.

When the cover dialog is used, it re-finds the cover. Here, it finds the one in 
the track folder.

So, as I said  - not sure what Cantata can do. To remedy the situation for you, 
use the Cache page of Cantata's settings dialog to remove scaled covers. Then 
re-start Cantata.

You need to re-start Cantata as it also has an internal cache of displayed 
images. I'll update the code to clear this cache when the on-disk is cleared 
via the config dialog.

Original comment by craig.p....@gmail.com on 15 Sep 2014 at 5:48

GoogleCodeExporter commented 9 years ago
Okay, thanks for your help. This can be closed.

Original comment by chow...@gmail.com on 18 Sep 2014 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by craig.p....@gmail.com on 18 Sep 2014 at 9:24