mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-06 21:31:23 +01:00
CollectionWatcher: Ignore temp files
This commit is contained in:
parent
6b23728efa
commit
cd9f8b569b
@ -485,7 +485,10 @@ void CollectionWatcher::ScanSubdirectory(const QString &path, const Subdirectory
|
|||||||
else {
|
else {
|
||||||
QString ext_part(ExtensionPart(child));
|
QString ext_part(ExtensionPart(child));
|
||||||
QString dir_part(DirectoryPart(child));
|
QString dir_part(DirectoryPart(child));
|
||||||
if (sValidImages.contains(ext_part)) {
|
if (child_info.suffix() == "tmp" || child_info.baseName() == "qt_temp") {
|
||||||
|
t->AddToProgress(1);
|
||||||
|
}
|
||||||
|
else if (sValidImages.contains(ext_part)) {
|
||||||
album_art[dir_part] << child;
|
album_art[dir_part] << child;
|
||||||
t->AddToProgress(1);
|
t->AddToProgress(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user