Commit Graph

73 Commits

Author SHA1 Message Date
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
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
Craig Drummond
10e1bc4125 Check DB is valid too 2016-07-12 20:20:50 +01:00
Craig Drummond
b32bc200ef If can't load SQLite db, then show error and terminate. 2016-07-12 20:18:14 +01:00
Craig Drummond
b4c5624eef Re-add genre combo to library view. Only visible if grouping by artist or album 2016-06-10 18:22:23 +01:00
Craig Drummond
9d21ec6761 Re-add all album sorts from Cantata 1.x 2016-01-27 19:41:32 +00:00
Craig Drummond
705648420a Update (c) year 2016-01-08 18:55:13 +00:00
Craig Drummond
4e2e595585 Ensure currentVersion is reset when changing DBs 2015-12-20 16:03:10 +00:00
Craig Drummond
448615377d When grouping albums, we need to group with artistId - either supplied, or from db. 2015-12-16 22:54:44 +00:00
Craig Drummond
c55ea1ea1d When retrieving albums, if album name is empty use albumId. The DB only stores 1 if they are the same. 2015-11-07 09:00:41 +00:00
Craig Drummond
e9b0ef6b7e Add a /slightly/ nicer sync dialog. Check songs from lib/dev to be copie
dto each other, then press sync button. Calls 2 action dialogs to do the
actual copying.
2015-11-01 16:15:55 +00:00
Craig Drummond
c88736999c Ignore 'The' (if configured) when sorting play queue.
#752
2015-10-28 21:45:01 +00:00
Craig Drummond
623ccc83a2 Enable a little more debug 2015-09-19 15:26:08 +01:00
Craig Drummond
3970b62bd7 Add more debug 2015-09-18 23:47:43 +01:00
Craig Drummond
afde673013 Fix searching for artists, etc, with hyphen - e.g. AC-DC 2015-09-18 22:57:13 +01:00
Craig Drummond
bd7750b3a4 Add 'Append Random Album' option to library, jamendo, and magnatune
pages.
#732
2015-09-13 12:54:50 +01:00
Craig Drummond
21b1ab89f7 Fix prefix searches - 'Maid' matches 'Iron Maiden'. SQLite FTS does not
seem to support suffix searches
#726
2015-08-29 17:15:29 +01:00
Craig Drummond
974bab4879 Add some safet checks around db pointer
#720
2015-08-08 22:39:55 +01:00
Craig Drummond
de84b197c0 If refresh MPD, then remove SQL cache so that its recreated. 2015-08-05 19:19:28 +01:00
Craig Drummond
8d71c798f1 Store title as is in DB - fixes odd looking title for "Single Tracks" 2015-08-05 18:23:57 +01:00
Craig Drummond
717abc86c9 Use text for string rows - otherwise '+44' is converted to '44'
#717
2015-08-02 15:10:13 +01:00
Craig Drummond
37d5446f68 Surround query strings in quotes
#712
2015-07-30 22:52:46 +01:00
Craig Drummond
311367d269 Sledgehammer. If schema version changes, delete SQL file to force
re-load.
2015-07-30 21:02:41 +01:00
Craig Drummond
30b16536a0 Set version to 0 if schema changed - causes a reload 2015-07-30 20:53:35 +01:00
Craig Drummond
7a969fe780 Also need to add albumId to fts table, in case album==albumId in which
case album is not stored in songs
#712
2015-07-30 20:40:09 +01:00
Craig Drummond
ecae49c24e Add option to set prefixes to ignore when sorting (e.g. 'The')
#706
2015-07-25 17:38:56 +01:00
Craig Drummond
03ed9e5970 Re-enable single char search
#702
2015-07-22 09:30:54 +01:00
Craig Drummond
25ff471d3b - Speed up album loading and searching. Use single query to get track
details - and use this to build listing.
- Reduce space of db slightly - by not storing album and albumId if
these are the same.
- Remove indexes, as these were incorrect anyway.
#702
2015-07-21 21:58:41 +01:00
Craig Drummond
6a45059c5a Add albums index
#702
2015-07-20 20:58:38 +01:00
Craig Drummond
db784df443 Search for all words 2015-07-17 23:58:52 +01:00
Craig Drummond
e89b4ca413 Artist index for Jamendo 2015-07-16 22:08:08 +01:00
Craig Drummond
ba89f8c879 Fix album/artist sort of "The ???" entries 2015-07-16 22:02:44 +01:00
Craig Drummond
99c1228f19 Only create fts table if it does not already exist. 2015-07-09 20:18:16 +01:00
Craig Drummond
2db8e6f1f6 Get rid of double not (!!) !!!!!!!
#687
2015-07-09 20:12:57 +01:00
Craig Drummond
498d361edd If unicode61 tokenizer fails, try with simple tokenizer.
#687
2015-07-09 19:56:03 +01:00
Craig Drummond
7e0536f239 Add some debug info if FTS creation fails 2015-07-09 19:17:45 +01:00