From bb5fe5a6d1393e27e6909d6441d030f431371b46 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 12 Oct 2021 22:58:39 +0200 Subject: [PATCH] Add Song::is_module_music() --- src/core/song.cpp | 1 + src/core/song.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/song.cpp b/src/core/song.cpp index 9444244f7..4e34aaa95 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -382,6 +382,7 @@ bool Song::is_radio() const { return d->source_ == Source_Stream || d->source_ = bool Song::is_cdda() const { return d->source_ == Source_CDDA; } bool Song::is_compilation() const { return (d->compilation_ || d->compilation_detected_ || d->compilation_on_) && !d->compilation_off_; } bool Song::stream_url_can_expire() const { return d->source_ == Song::Source_Tidal || d->source_ == Song::Source_Qobuz; } +bool Song::is_module_music() const { return d->filetype_ == Song::FileType_MOD || d->filetype_ == Song::FileType_S3M || d->filetype_ == Song::FileType_XM || d->filetype_ == Song::FileType_IT; } bool Song::art_automatic_is_valid() const { return !d->art_automatic_.isEmpty() && diff --git a/src/core/song.h b/src/core/song.h index 5fcd75cf3..85124a0c5 100644 --- a/src/core/song.h +++ b/src/core/song.h @@ -275,6 +275,7 @@ class Song { bool has_valid_art() const; bool is_compilation() const; bool stream_url_can_expire() const; + bool is_module_music() const; // Playlist views are special because you don't want to fill in album artists automatically for compilations, but you do for normal albums: const QString &playlist_albumartist() const;