scanner: Clean up non-destructive rescan
Fix several issues with the non-destructive rescan functionality. Most of these issues also affected inotify scanning as well. These include annoying debug messages, adding album art for files that we aren't supposed to be scanning anyway, incrementing the UpdateID when no changes were made to the database, and other smaller issues.
This commit is contained in:
@ -630,7 +630,7 @@ SendResp_presentation(struct upnphttp * h)
|
||||
"<tr><td>Image files</td><td>%d</td></tr>"
|
||||
"</table>", a, v, p);
|
||||
|
||||
if (scanning)
|
||||
if (GETFLAG(SCANNING_MASK))
|
||||
strcatf(&str,
|
||||
"<br><i>* Media scan in progress</i><br>");
|
||||
|
||||
@ -1360,7 +1360,7 @@ _open_file(const char *orig_path)
|
||||
if (strncmp(path, media_path->path, strlen(media_path->path)) == 0)
|
||||
break;
|
||||
}
|
||||
if (!media_path && strncmp(path, db_path, strlen(db_path)))
|
||||
if (!media_path && strncmp(path, db_path, strlen(db_path)))
|
||||
{
|
||||
DPRINTF(E_ERROR, L_HTTP, "Rejecting wide link %s -> %s\n",
|
||||
orig_path, path);
|
||||
|
Reference in New Issue
Block a user