114 Commits

Author SHA1 Message Date
Craig Drummond
b6bd94c236 Update (c) year 2022-01-08 21:24:07 +00:00
Craig Drummond
dbdc211da2 Use QCollator to compare strings. 2021-12-27 20:39:51 +00:00
Craig Drummond
31b8a6d9b9 Revert "Revert "Merge pull request #1727 from jprjr/fix-deprecated-warnings""
This reverts commit be9c1e74e0.
2021-07-29 12:00:04 +01:00
Craig Drummond
be9c1e74e0 Revert "Merge pull request #1727 from jprjr/fix-deprecated-warnings"
This reverts commit cb18837d11, reversing
changes made to b296cf7113.
2021-07-28 19:44:57 +01:00
John Regan
93c4ea12c3 fix deprecation: QSet::toList 2021-07-20 08:44:23 -04:00
Craig Drummond
11bb7571c9 Update (c) year 2021-01-01 10:06:43 +00:00
Craig Drummond
c3592ad00c Check DB is valid in all cases
Issue #1657
2020-12-06 10:23:23 +00:00
Craig Drummond
ea0610ba9c Filter out CUE source tracks before they enter DB.
Issue #1652
2020-11-17 18:45:06 +00:00
Craig Drummond
82a6798c83 - Better handling of CUE tracks when MPD is set to list as directory.
- Disable CUE parsing in cantata by default, as MPD handles this better now.

Issues #1650 and #1652
2020-11-17 12:06:04 +00:00
Christian Friedrich Coors
1f2f5300e4 Limit number of songs queried by AlbumView 2020-11-06 19:06:48 +01:00
Thomas Uhle
afc0b2fcc1 Replace Utils::random() by QRandomGenerator::global()
qrand() and qsrand() which are used by Utils::random() and Utils::initRand()
respectively are deprecated. Utils::random() and Utils::initRand() are no
longer necessary because QRandomGenerator supports everything what is
needed.
2020-06-12 16:10:56 +02:00
Thomas Uhle
94287bb8eb Replace deprecated sprintf() by QString::arg() 2020-06-12 15:45:37 +02:00
Craig Drummond
e6610c1668 When checking if song exists, check disc number.
Closes #1599
2020-05-04 19:06:59 +01:00
Craig Drummond
b8645d1358 Fix most, but not all, deprecation warnings. 2020-02-16 09:51:37 +00:00
Craig Drummond
d7b3965b9b Update (c) year 2020-01-01 11:51:13 +00:00
Craig Drummond
cb9efe205f Update (c) year 2019-09-15 15:56:58 +01:00
Craig Drummond
138589aa0a When listing albums in context view, if can't find and for artist, try
composer.
Issue #1460
2019-03-04 20:08:37 +00:00
Craig Drummond
ddd46cde1a For genres listed in "Composer Support" tweak, shown composer instead of
artist in context view and toolbar.
Issue #1460
2019-03-01 21:36:57 +00:00
Pavel Shlyak
f45cbde982 Update librarydb.cpp
Someone has forgotten to assign a new value to cmp. Ups..
2019-01-05 17:33:26 +04:00
Craig Drummond
eff0e66d39 Use AUTOMOC 2018-03-07 19:04:14 +00:00
Craig Drummond
7738eaeac9 Don't add year to album name, leads to duplicated year 2018-02-05 20:47:20 +00:00
Craig Drummond
d4564d9de4 Add option to use 'Original Year' to display and sort albums.
Issue #1177
2018-02-01 19:36:27 +00:00
padertux
4f26eb686e Refactor code to use C++11 nullptr 2018-01-08 23:01:25 +01:00
padertux
dc8cbed1eb Refactor code to use C++11 overriding 2018-01-08 22:51:48 +01:00
Craig Drummond
178a3ad522 Sort single tracks by title, track artist, then track number, etc.
Issue #1155
2018-01-02 13:29:56 +00:00
Craig Drummond
ff6928df85 Remove debug line 2018-01-02 11:02:03 +00:00
Craig Drummond
536015557c Don't show year for 'Single Tracks' 2018-01-02 00:05:35 +00:00
Craig Drummond
2139d3dbb8 Update (c) year 2018-01-01 10:11:39 +00:00
Craig Drummond
0613f1ad26 Delete albumIdOnlyCoverQuery when changing connection.
Issue #1143
2017-12-17 18:49:57 +00:00
Craig Drummond
12ffebd5ec Log track count 2017-12-17 18:46:36 +00:00
Craig Drummond
1bb234c845 Close DB when reset 2017-12-17 18:45:14 +00:00
Craig Drummond
98181fb20a Log db filenames 2017-12-17 18:45:05 +00:00
Craig Drummond
a9bfee66e7 Only bind used values 2017-12-17 17:29:09 +00:00
Craig Drummond
311fb0c0fe Make it possible to filter on year (or range of years) in library search
field.
Issue #1131
2017-12-01 18:57:31 +00:00
Craig Drummond
f322d43899 Create QSqlQuery, then call prepare
Issue #1130
2017-11-28 22:37:01 +00:00
Craig Drummond
6e100a5ef5 Use for(var: list) and not foreach(var, list) 2017-11-27 22:36:53 +00:00
Craig Drummond
dad279102d Fix extraction of album names from DB - for use in tag editor and
playlist rules dialogs.
2017-08-19 14:49:38 +01:00
Craig Drummond
be28b9e2dd If listing albums not filtered on artist, then if we have a unqique id
for the album use that. This will allow us to grouup albums with
different composers when the composer tweak is set.
Issue #1025
2017-06-13 18:40:12 +01:00
Craig Drummond
23b32d029b If 'composer genre' is set in tweaks, then use composer to sort artists.
Issue #1025
2017-06-11 20:09:37 +01:00
Craig Drummond
4a1bcd654d Add support for OriginalDate tag.
Issue #1012
2017-04-28 17:41:45 +01:00
Craig Drummond
23b7ded461 Fix line 2017-04-20 20:53:06 +01:00
Craig Drummond
b63c6fbe26 Use Qt5's translation framework - ts files, not po files. 2017-04-08 10:35:31 +01:00
Craig Drummond
0a73215867 Update (c) year 2017-04-02 18:45:30 +01:00
Craig Drummond
a517bf4f17 Remove KDE4 and Ubuntu Touch support 2017-04-01 22:55:27 +01:00
Craig Drummond
3f9554c558 Fix display of artist when showing composer albums 2017-03-13 18:52:24 +00:00
Craig Drummond
2538650986 Add return statement
Issue #957
2017-02-04 15:03:54 +00:00
Craig Drummond
b125f1a846 Fix reading of multiple genres from db - was reading 1 field too much!
Issue #939
2016-12-23 10:14:14 +00:00
Craig Drummond
eaca1f34f3 When listing albums where composer is used for artist grouping, place album artist name after album name if different from composer.
Issue #896
2016-10-16 22:33:41 +01:00
Craig Drummond
0cf6ba47d8 Cache up to 4 genres in SQL db. (Issue #882) 2016-08-11 16:54:49 +01:00
Craig Drummond
709b5582ee Show error, but don't terminate (unless showing wizard) on Qt DB driver error 2016-07-12 23:13:11 +01:00