Commit Graph

33 Commits

Author SHA1 Message Date
John Maguire f429b53212 Use static version of qsqlite plugin on mac as well & disable qxt for mac.
The plugin shipped with Qt has the sqlite symbols set to hidden. It seems dlsym() actually cares about that on Snow Leopard whereas it doesn't in Leopard.
If it can't find the sqlite functions in the given library, then it will go fishing and find /usr/lib/libsqlite3.dylib and that's bad :-(
2010-04-13 19:43:08 +00:00
David Sansome dacdf4cc5a Clean up deleted subdirectories from the database properly. Fixes an issue where subdirectories in the library wouldn't be rescanned if they were removed and recreated. Updates issue #45. 2010-04-04 14:59:55 +00:00
David Sansome 2443ce6585 Reworked the library watcher to be much more efficient - the backend now holds a list of subdirectories within each library directory, and only the mtimes of these are checked on startup. 2010-04-01 16:59:32 +00:00
David Sansome 4c42813d9f Add "group by" support to the library, and improve the whole library model to make it more robust.
Still todo: the "Group by advanced..." dialog, unit tests.
Updates issue #94.
2010-03-31 00:30:57 +00:00
John Maguire 2e71390acd Switch from OR to AND in split queries.
Fixes issue #116
2010-03-25 15:59:58 +00:00
John Maguire 645b819b68 Actually use unicode aware LIKE() on win32. 2010-03-25 15:39:13 +00:00
John Maguire 502e346218 Forgot to update win32 sqlite functions. 2010-03-25 15:37:15 +00:00
John Maguire 95252ccc71 Support query splitting in library search.
Improve performance of LIKE().
Fixes issue #104
2010-03-25 13:58:24 +00:00
David Sansome 70b6ba8c39 Fall back on sqlite's default non-unicode aware LIKE when we couldn't load the sqlite symbols. Fixes problems for slackware users (one of their problems anyway...). 2010-03-24 16:02:06 +00:00
David Sansome fa00ee971d Add license headers to all our source files 2010-03-23 23:11:46 +00:00
David Sansome 16e1deaade Make it possible for the LibraryBackend to be mocked, and add a simple test for Library. 2010-03-23 17:26:54 +00:00
John Maguire 2aeff9b5e2 Fix compile on mac for old sqlite3 header. 2010-03-22 18:46:41 +00:00
David Sansome b1e1de709c Bring the QSQLITE plugin into the source tree and statically link it on Windows.
Also remove the unused xine windows patches, and move all the windows resources into dist/windows
2010-03-22 18:35:31 +00:00
John Maguire 2f350c1ae6 Add unit tests for custom LIKE() function. 2010-03-22 16:03:24 +00:00
David Sansome 43a8b89732 Delete the divider entries properly from the library when deleting songs, and move songs to "Various artists" correctly. 2010-03-21 22:14:07 +00:00
David Sansome b5b61a2e0e Add a couple of indexes to the database to speed up searches on large libraries. 2010-03-21 21:17:01 +00:00
John Maguire a7596959eb Compile fixes for mac for old sqlite3 header. 2010-03-21 16:11:26 +00:00
John Maguire b468306d2f Stop linking against sqlite and use the loaded plugin. 2010-03-21 13:29:06 +00:00
David Sansome 1a930bf2b5 Add a menu item to the library for forcing albums to appear under Various Artists.
Fixes issue #43
2010-03-20 23:59:39 +00:00
John Maguire 758f99be49 Support unicode-aware comparisons in Sqlite3.
Fixes issue #71
2010-03-20 23:41:59 +00:00
David Sansome 3d34aa240c Add albumartist, composer, file type and date columns to the playlist. Also add columns to the database for rating, playcount, and lastplayed (not used yet).
Fixes issue #66
2010-03-07 22:46:41 +00:00
John Maguire 64abef1cd4 Make tracks with no album show up.
Fixes issue #57
2010-03-05 10:51:16 +00:00
David Sansome 3f861654ec Some more backend tests 2010-03-03 00:33:31 +00:00
David Sansome 3296bf7b7d LibraryBackend tests should test at a higher level 2010-03-02 23:37:12 +00:00
John Maguire 864215cb23 Adds a test for LibraryBackend (not as trivial as it sounds :-)
Adds Googlemock.
Adds mock Qt database drivers.
2010-03-01 22:00:15 +00:00
David Sansome 91958d0fd2 Change the data returned from sqlite a bit so the library view can use cover art too. Still a couple of TODOs in here. 2010-02-28 22:07:59 +00:00
David Sansome 605e3a87cc Fetch missing album covers from last.fm :) 2010-02-28 19:25:52 +00:00
David Sansome 12273256e5 Album cover art manager. So far this only displays cover art that was loaded from disk. 2010-02-28 18:04:50 +00:00
David Sansome 1a26380e3f Load album cover art from files on disk 2010-02-28 00:35:20 +00:00
David Sansome 669a0263ff Improved various artists detection - inspired by Amarok.
Also support updates to the database schema.
Fixes issue #18
2010-02-27 20:12:22 +00:00
David Sansome 03b12786cf More descriptive sqlite errors 2010-02-13 22:55:48 +00:00
David Sansome 62794cdf70 Rename tangerine to clementine 2010-01-08 16:21:22 +00:00
David Sansome 5b0496bf8f Move everything to trunk 2009-12-24 19:16:07 +00:00