Commit Graph
1620 Commits
Author SHA1 Message Date
Adrian Ulrich dcd7df4f66 first version of automatic media scanner 2016-12-26 19:31:12 +01:00
Adrian Ulrich 8abdf25d38 Implement getLibrarySize() 2016-12-18 19:59:46 +01:00
Adrian Ulrich 16aa6440f8 implement externally triggerable scanner 2016-12-18 18:55:41 +01:00
Adrian Ulrich 57b88bfef2 fix code style errors 2016-12-18 18:27:59 +01:00
Adrian Ulrich 2e9de29921 fix comment typo 2016-12-18 11:53:10 +01:00
Adrian Ulrich 4ed4cd0fab implement startNativeLibraryScan() 2016-12-18 11:50:59 +01:00
Adrian Ulrich 5782e295eb implement startUpdateScan() 2016-12-18 11:36:17 +01:00
Adrian Ulrich 4429c50dec improve handling of file updates 2016-12-18 10:58:15 +01:00
Adrian Ulrich da159cace2 Reduce visibility of functions 2016-12-18 10:12:46 +01:00
Adrian Ulrich 72d8c65211 UGLY: our SQL optimizer is pretty silly and uses a regexp to parse SQL.
Instead of fixing the root issue (parsing sql by regexp), we are going to pass
a 'nicer' query to the 'optimizer' so that it is able to catch our intent.
2016-12-18 10:09:48 +01:00
Adrian Ulrich 012f0538f8 remove orphaned playlist entries during delete 2016-11-28 21:06:42 +01:00
Adrian Ulrich 055effb976 support for file updates 2016-11-28 21:05:02 +01:00
Adrian Ulrich 69b8636c60 get rid of unused recursive flag 2016-11-28 20:05:08 +01:00
Adrian Ulrich 3d49310a9d move observer notifications into MediaLibrary from MediaLibraryBackend 2016-11-28 20:03:47 +01:00
Adrian Ulrich fd7d3cb31b discover storage paths automatically 2016-11-27 18:46:48 +01:00
Adrian Ulrich b288425994 add songs.year column 2016-11-27 14:29:00 +01:00
Adrian Ulrich d493056cc9 pass all tags trough a filter 2016-11-27 14:16:16 +01:00
Adrian Ulrich d2559dcaf0 Fix crash in listview
setData() might get called late after a queue update. If the listview already started to draw, it might trigger a panic if a count mismatch was detected
2016-11-26 20:51:43 +01:00
Adrian Ulrich f749773e35 sort songs by album if we hit PlayAll from the artists tab 2016-11-26 20:32:37 +01:00
Adrian Ulrich 62e58c003c fix wrong sorting for 'enqueue album' 2016-11-26 20:22:05 +01:00
Adrian Ulrich bc69dde38c implement simple blacklist 2016-11-26 20:14:36 +01:00
Adrian Ulrich 6a6178846b make role a constant 2016-11-26 20:14:17 +01:00
Adrian Ulrich 8d05089c9f brush up scanner 2016-11-26 19:47:27 +01:00
Adrian Ulrich 69b9393987 vorbis: guess YEAR from DATE 2016-11-26 19:29:15 +01:00
Adrian Ulrich 0af0d35a66 unify metadata extractor 2016-11-26 19:15:10 +01:00
Adrian Ulrich 432ce9d557 get rid of unused song_count and disc_count fields 2016-11-26 18:59:11 +01:00
Adrian Ulrich 2df519f0f6 add metadata extraction wrapper 2016-11-26 18:57:41 +01:00
Adrian Ulrich 80744ae9cc Merge branch 'master' into medialibrary 2016-11-26 17:25:04 +01:00
Adrian Ulrich b24648caac Use ArrayList instead of Vector 2016-11-26 17:24:43 +01:00
Adrian Ulrich 2f477c65d4 get rid of some content resolver leftovers 2016-11-26 16:59:46 +01:00
Adrian Ulrich 29c6dd9916 add songs for playlist_id,song_id queries 2016-11-26 16:53:05 +01:00
Adrian Ulrich 6683a221ab bring back android album artwork support 2016-11-26 16:50:51 +01:00
Adrian Ulrich f218271919 use Long.toString() 2016-11-26 16:28:35 +01:00
Adrian Ulrich e3c6331885 do not use sort trickery on playcounts playlist name 2016-11-26 16:25:41 +01:00
Adrian Ulrich 92cfa6f2ca target 1.0.46 2016-11-24 15:22:24 +01:00
Adrian Ulrich 0873318931 fix +1 updates and re-implement playlist sorting 2016-11-24 13:23:04 +01:00
Adrian Ulrich 53eb77e8b3 re-add playlist renaming 2016-11-22 10:40:29 +01:00
Adrian Ulrich c631d17b52 Merge branch 'master' into medialibrary 2016-11-22 10:05:46 +01:00
Adrian Ulrich 331fbe94d9 improve performance of ShowQueueAdapter
Using a copy of the timeline and re-creating all entries on every view update scales very poorly (what was i thinking?!)
The new code holds a reference to the playback service where it can query the queue on demand
2016-11-22 10:04:53 +01:00
Adrian Ulrich db39ae5819 use hash63 also for playlist names
Unlike eg. MySQL, SQLite3 tends to re-use INDEX columns, so creating & deleting a playlist would cause the next one to re-use the same ID, which confuses our in-memory cache (which assumes stable / unique IDs)

Hashing by name solves this and also ensures that we do not create duplicate playlists in any code path
2016-11-21 20:42:23 +01:00
Adrian Ulrich 6f15dd5989 use correct projection for playlist queries 2016-11-21 20:38:30 +01:00
Adrian Ulrich a2e87d3670 fix typo 2016-11-21 15:42:07 +01:00
Adrian Ulrich 736da85770 unbreak removeItem() to swipe-away playlist entries 2016-11-21 15:30:41 +01:00
Adrian Ulrich d35992f3c4 bring back removeFromPlaylist() 2016-11-21 15:08:14 +01:00
Adrian Ulrich 4e1101b2da initial import of our own media library database 2016-11-21 11:38:43 +01:00
Adrian Ulrich 1e1fe4a375 fix fd-leak 2016-11-17 17:57:17 +01:00
Adrian Ulrich 2b885824c2 sync BASTP with f3ffdb930c57ab691b42d8ca9fbb9acf26073aad 2016-11-17 17:56:04 +01:00
Adrian Ulrich ebf75fc683 Merge pull request #463 from CarbonROM/cr-5.1
Vanilla: Add Tools to build in Android tree
2016-11-11 17:47:34 +01:00
Christian Oder e42ab04b54 Vanilla: Add Tools to build in Android tree
Also workaround build errors about missing localisation of empty strings

Change-Id: I359bee2019eee7bf1bf59107bbd68cc2a0ee1dc8

Vanilla: Cleanup Android.mk

Change-Id: Icac01fa7bc89b32ecc45ca8991fcb19d0db5baf3
2016-11-11 15:59:51 +01:00
Adrian Ulrich e02e3cbc1b fix scrobble droid strings 2016-11-09 21:05:34 +01:00