Properties/Tagcache Track Info Retrieval: Skip files with errors (2)

Addendum to e3b2293

Don't abort even when the database has returned a filename,
since metadata retrieval may still fail.

Change-Id: I9e397c44a4c80f24e937f085efbd540f274822a0
This commit is contained in:
Christian Soffke 2023-10-17 19:28:47 +02:00
parent f932522d8a
commit 9cd4943950

View file

@ -375,10 +375,8 @@ static bool determine_file_or_dir(void)
#ifdef HAVE_TAGCACHE
bool mul_id3_add(const char *file_name)
{
if (!file_name)
if (!file_name || rb->mp3info(&id3, file_name))
skipped_count++;
else if (rb->mp3info(&id3, file_name))
return false;
else
{
collect_id3(&id3, mul_id3_count == 0);