* Fix issues with album art linking if the link target is in a different directory than the previous file.

This commit is contained in:
Justin Maggard
2009-04-18 02:23:06 +00:00
parent 68f7448c0c
commit 6fc880a25d
3 changed files with 22 additions and 9 deletions

View File

@ -75,7 +75,7 @@ _get_mp3tags(char *file, struct song_metadata *psong)
if(!strcmp(pid3frame->id, "YTCP")) /* for id3v2.2 */
{
psong->compilation = 1;
DPRINTF(E_DEBUG, L_SCANNER, "Compilation: %d\n", psong->compilation);
DPRINTF(E_DEBUG, L_SCANNER, "Compilation: %d [%s]\n", psong->compilation, basename(file));
}
else if(!strcmp(pid3frame->id, "APIC") && !image_size)
{
@ -580,11 +580,11 @@ _get_mp3fileinfo(char *file, struct song_metadata *psong)
{
if(ferror(infile))
{
DPRINTF(E_ERROR, L_SCANNER, "Error reading: %s\n", strerror(errno));
DPRINTF(E_ERROR, L_SCANNER, "Error reading: %s [%s]\n", strerror(errno), file);
}
else
{
DPRINTF(E_ERROR, L_SCANNER, "File too small. Probably corrupted.\n");
DPRINTF(E_WARN, L_SCANNER, "File too small. Probably corrupted. [%s]\n", file);
}
fclose(infile);
return -1;