mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-27 23:59:53 +01:00
parent
3f06528ba3
commit
8fc95e08dc
@ -71,6 +71,7 @@
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
QStringList CollectionWatcher::sValidImages = QStringList() << "jpg" << "png" << "gif" << "jpeg";
|
||||
QStringList CollectionWatcher::kIgnoredExtensions = QStringList() << "tmp" << "tar" << "gz" << "bz2" << "xz" << "tbz" << "tgz" << "z" << "zip" << "rar";
|
||||
|
||||
CollectionWatcher::CollectionWatcher(Song::Source source, QObject *parent)
|
||||
: QObject(parent),
|
||||
@ -509,7 +510,7 @@ void CollectionWatcher::ScanSubdirectory(const QString &path, const CollectionSu
|
||||
else {
|
||||
QString ext_part(ExtensionPart(child));
|
||||
QString dir_part(DirectoryPart(child));
|
||||
if (child_info.suffix() == "tmp" || child_info.baseName() == "qt_temp") {
|
||||
if (kIgnoredExtensions.contains(child_info.suffix()) || child_info.baseName() == "qt_temp") {
|
||||
t->AddToProgress(1);
|
||||
}
|
||||
else if (sValidImages.contains(ext_part)) {
|
||||
|
@ -245,6 +245,7 @@ class CollectionWatcher : public QObject {
|
||||
CueParser *cue_parser_;
|
||||
|
||||
static QStringList sValidImages;
|
||||
static QStringList kIgnoredExtensions;
|
||||
|
||||
qint64 last_scan_time_;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user