chme
dc020cc3ac
[db/filescanner/spotify] Set directory path
2018-12-18 08:28:19 +01:00
chme
42cbd721fd
[db] Minor version upgrade: new column "path" in directories table
2018-12-18 08:28:19 +01:00
whatdoineed2do
488f52b04f
[db] schema v19.11 support composer in queue tbl
2018-11-30 17:22:21 +01:00
chme
041a87427c
[spotify] Set artwork url in queue items for spotify tracks
...
Fixes missing artwork for spotify tracks that are not in the user
library.
2018-11-28 20:31:50 +01:00
chme
a8e8dc1999
[library/db/filescanner/spotify] Reshuffle after adding non library
...
items to the queue
2018-11-11 07:01:22 +01:00
chme
05141480e2
[player/db] Increment queue version if shuffle mode is turned off
...
This fixes showing the wrong queue in the player web interface after
turing shuffle mode off.
2018-11-11 07:01:22 +01:00
chme
8d8663e93d
[db/queue] Support adding non-library items at a given position to the
...
queue
2018-10-25 19:36:43 +02:00
ejurgensen
b54c9ff1c6
[db] Fix count error in db_build_query_browse() if no items match query
2018-09-23 01:37:40 +02:00
ejurgensen
a003c419c3
[db] Add missing casts of time_skipped ( fixes #593 )
...
The print mask for some reason uses int64, so time_skipped was too short
2018-09-19 08:12:40 +02:00
ejurgensen
2a9d3f7474
Merge pull request #591 from chme/queue_add_pos
...
[db] Add support to add items to the queue at a specified position
2018-09-16 13:13:13 -07:00
chme
7252b3e509
[db] Add support to add items to the queue at specified position
2018-09-16 09:36:43 +02:00
chme
f84e67ed5e
[db/conf] Add automatic calculation of ratings based on played/skipped
...
If activated in the configuration file, rating is updated after playing
or skipping a song. The calculation is based on how it is done in the
mpdstats plugin for beets
(https://beets.readthedocs.io/en/latest/plugins/mpdstats.html ).
2018-09-16 08:46:16 +02:00
ejurgensen
16e375e637
[db/misc] Cast ARRAY_SIZE to unsigned (avoids compiler warnings)
2018-09-04 20:07:05 +02:00
ejurgensen
350361e8bb
[db] Be forwards compatible with tables that have additional columns
2018-09-02 23:38:46 +02:00
ejurgensen
fde0a28142
Support for skip_count and time_skipped file metadata
2018-08-18 22:56:27 +02:00
ejurgensen
9d95466e09
[db] Use ANALYZE instead of PRAGMA optimize (reverts commit cd96ec5
)
...
Turns out PRAGMA optimize does not analyze tables on a fresh install,
which means that sqlite_stat1 is not available for the query planner,
which means that wrong indexes are used.
See https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=49928&sid=1e5d1d418315d7565ae027d751dd94a0&start=1350#p1328964
2018-06-16 21:43:58 +02:00
chme
85257788ba
[jsonapi] Add cache control header to count endpoint and fix
...
not-modified-since check to check against the last db update instead of
last start time
2018-05-09 22:29:52 +02:00
chme
41e99ca3cd
[db/mpd/jsonapi] Include artist and album count in filecount query; add
...
count endpoint and additional metadata to JSON API; remove unused
artist-/album-count queries
2018-05-09 22:29:52 +02:00
chme
359d12f4ff
[db] Free order by-clause in playist_info
2018-04-15 22:11:40 +02:00
chme
f167e975c2
Unify naming of "order by" clause in structs/table
2018-04-15 22:11:40 +02:00
chme
47a79d40f1
[db] Allow fetching playlists if the schema contains more columns than
...
the column map (can happen if there was a minor db version upgrade)
2018-04-15 22:11:40 +02:00
chme
f1c7672426
[db] Fix total results for album group query
...
The query did not respect the filter and therefor always returned the
number of albums in the library and not the number of albums for the
given query.
2018-04-15 22:11:40 +02:00
chme
6bdcda1524
[db/filescanner] Upgrade database to v19.08 and support limit/order by
...
in smart playlist files
2018-04-15 22:11:40 +02:00
chme
9708e26dd1
[db] Add support for ORDER BY and HAVING clause in query parameter
2018-04-15 22:11:40 +02:00
chme
60ebac076b
Refactor adding non library items to the queue
...
Instead of asking a client to first scan the path into a media_file_info
object and afterwards add it to the queue, we now offer a library
function to directly add a path.
The library-source that can handle the given path translates the path
into new queue item(s) and adds them to the queue.
2018-04-15 22:09:28 +02:00
chme
66bdb7c0a9
[db] Add function to get a human readable string for data and media kind
2018-03-14 19:21:57 +01:00
chme
f47a17e186
[db] Remove unused function "db_queue_get_pos_byfileid"
2018-03-08 21:50:41 +01:00
ejurgensen
50c6d3f272
[db] Silence misleading log error message
...
We were logging a missing lastfm_sk in the admin table as
an error, which it really isn't
2018-03-03 20:13:09 +01:00
ejurgensen
ea6fd1476a
[db] Improve speed of browse queries (issue #478 )
...
Before, we returned either unordered (for RSP, meaning client had to
sort) or ordered by a client selected sort_clause[]. The latter are
multi-purpose and therefore not optimised for browse queries.
To speed up, we predefine the entire set of browse queries, including
order, with matching indices. The predefined queries are used except
if the client explicitly requests a non-default order or query.
As a special bonus, the commit also allows queries with I_SUB that
have an offset but no limit.
2018-03-02 21:11:31 +01:00
chme
cd96ec579a
[db/library] Use "PRAGMA optimize" instead of "ANALYZE"
...
ANALYZE collects and saves statistics even if there were no database
changes and the last collected data is still good.
According to the sqlite3 documentation, it is recommended to use "PRAGMA
optimize" which will call "ANALYZE" if it is necessary. "PRAGMA
optimize" will run "ANALYZE" based on prior queries on the same database
connection. It is recommended to run optimize before closing the
connection.
(see https://www.sqlite.org/lang_analyze.html )
2018-02-26 18:41:28 +01:00
chme
30aa4cf525
[db] Fix comments
2018-02-22 21:36:14 +01:00
chme
8b2d40d46f
Initialize local variables to silence OpenWrt compiler warnings
2018-02-22 21:35:38 +01:00
ejurgensen
c23f2c01b2
[scan] Fix bugs related to iTunes XML playlists
...
1) They would get disabled after rescan
2) Playlists and playlistitems didn't get cleaned up
2018-01-25 22:26:00 +01:00
chme
18a6372fb1
[dbperf] Use sqlite3_trace_v2 instead of deprecated sqlite3_profile
...
Set log severity depending on how long the query was running and return
early if log level is lower than the current one.
2018-01-13 11:05:58 +01:00
chme
981fd3e183
[db] Update queue_version in db_queue_move_byitemid
...
Fixes missing queue updates in MPDroid after moving an item in the
queue. MPDroid moves items with the 'moveid' command and retrieves the
playlist changes with the 'plchanges' command, due to the missing
queue_version update the last command did not return any changes and the
queue in MPDroid did not get updated.
2017-12-30 08:01:07 +01:00
chme
56f4b32ef3
Add option to enable memory-mapped I/O
2017-12-26 08:06:38 +01:00
ejurgensen
731106276f
Merge pull request #466 from chme/libspotify_remove_scan
...
[spotify] Remove scanning saved playlist with libspotify
2017-12-25 19:33:41 +01:00
chme
a1372c692e
[mpd] Implement 'playlistfind' and 'playlistsearch'
2017-12-22 11:24:43 +01:00
chme
471eb9db46
[db] Do not trigger a DATABASE event if db_directory_enable_bypath does
...
not change the library
2017-12-17 09:13:09 +01:00
ejurgensen
b428760599
[scan] Fix for issue #463 , fname not getting updated on file rename
...
Also modify code style of _enable/_disable functions in db.c
2017-12-16 23:09:29 +01:00
chme
5a57a564a4
[db] Instantly notify about rating changes
2017-12-15 19:08:32 +01:00
chme
e7d6fbb9fc
[listener/etc.] Rename LISTENER_STICKER to LISTENER_RATING
...
Unit there is a real sticker implementation, make it clear, that the
event is only triggered for rating changes.
2017-12-15 19:08:32 +01:00
chme
ef52f4ddc0
Rework user rating updates
2017-12-15 19:08:32 +01:00
chme
88f7d4601d
[db] Fix adding urls to the queue that are not in the library
2017-12-13 22:02:38 +01:00
chme
912635e737
[db] Update queue_version for changed queue items
2017-12-09 11:01:41 +01:00
Wolfgang Scherer
bb451802d2
[db] Queue notification when metadata changes ( #448 )
2017-12-02 16:44:29 +01:00
chme
4800f9943b
[db] Rename 'ADMIN_*' defines to 'DB_ADMIN_*'
2017-11-19 22:08:23 +01:00
chme
f49a3c888a
[db] Store start time in admin table
2017-11-19 22:08:23 +01:00
chme
38ab4b9676
[db] Functions to read/store int in the admin table and introduce
...
constants for admin table keys
2017-11-19 22:08:23 +01:00
chme
4fe4bee809
[db] Only trigger the library update callback, if a query changed at
...
least one row
2017-11-17 19:40:04 +01:00