sshambar
b128271656
Merge branch 'master' into fixthreads
2017-01-21 10:27:26 -05:00
Scott Shambarger
8e3797ec43
[threads] Update mutex/cond functions to use new CHECK_ERR macros
...
Added various macros to check return values and log any errors and abort
if the call fails.
Updated logging to handle early errors before logging initialized.
2017-01-21 07:11:20 -08:00
chme
6163269832
[dacp/db] Fix issue found with scan-build
...
- Result of operation is garbage or undefined in dacp_reply_cue_play
- Uninitialized argument value in dacp_reply_playqueuecontents
- Uninitialized argument value in queue_fetch_byposrelativetoitem
2017-01-20 19:00:11 +01:00
Scott Shambarger
b54d94fda6
[threads] Added missing initializers, check errors on mutex/cond calls
2017-01-13 17:32:59 -05:00
chme
4e60626749
[db] Add missing purge of directories in db_purge_all
2017-01-13 18:56:37 +01:00
chme
ae1a45bacc
[library/spotify] Implement rescan in spotify.c and purge old files
...
after rescan
2017-01-13 18:56:37 +01:00
chme
56ce3f9cba
[library/filescanner/spotify] Add library source abstraction and new
...
"library" thread
- Implement filescanner as a library_source
- Add library source implementation for spotify
- Move process_media_info to library with small adjustments:
- Remove dependency to F_SCAN_TYPE defines
- Pass data_kind as parameter
- Pass media_kind and compilation as parameter if a source forces a
specific value for these
- Move declaration of scan_ffmpeg to library; add
library_add_playlist_info to library
2017-01-13 18:56:37 +01:00
ejurgensen
213b58c012
[db] Forgot to add Q_FIND_PL as a playlist query
2017-01-06 19:58:38 +01:00
ejurgensen
27946a472b
[artwork] Add handler for playlist local artwork (for http items)
...
- ref https://www.raspberrypi.org/forums/viewtopic.php?p=1090166#p1090166
2017-01-06 19:35:05 +01:00
ejurgensen
b7c4256df4
[db] Refactor db_build_query_* to reduce redundancy
2017-01-04 22:29:47 +01:00
chme
be6b4376e8
[db] wrap db_purge_cruft in a transaction
2016-12-27 21:31:01 +01:00
ejurgensen
1748430c48
[db] Review of cache regeneration triggers
2016-12-18 21:18:15 +01:00
ejurgensen
40d34ed4ad
Merge pull request #324 from chme/db3
...
Remove rebuilding the persistent-ids on startup
2016-12-18 11:20:10 +01:00
chme
7856498951
[db] Remove unused functions db_files_update_songartistid,
...
db_files_update_songalbumid
2016-12-17 16:17:23 +01:00
chme
3d3c27190b
[db] Add function to cleanup the 'groups' table (artists and albums)
...
Allows removing of item no longer referenced from the files table
2016-12-17 07:38:47 +01:00
chme
351725c8b2
[db] initialize id parameter with 0
2016-12-17 07:11:43 +01:00
chme
de61a3a851
[db] Remove db_admin_update and rename db_admin_add
2016-12-10 06:15:43 +01:00
chme
c4732b835f
[db] Remove unused function db_file_id_byfilebase
2016-12-09 16:20:50 +01:00
chme
588fe120b7
[db] Rename db_get_count to db_get_one_int
2016-12-09 16:20:03 +01:00
chme
2d1e5f6d60
[player/db] Remove function "db_file_get_seekpos"
2016-12-04 17:48:35 +01:00
chme
d339f5bcd2
[db] fixup
2016-12-04 11:34:54 +01:00
chme
edc609b531
[db] Queue fetch functions should end the query after start and fetch
2016-12-04 09:32:50 +01:00
chme
09c2e7ca76
[db] Add missing free of query_param.filter
2016-12-04 09:16:49 +01:00
chme
fb55960b0a
[db] Remove db_queue_enum struct and use generic query_params
2016-12-04 08:18:33 +01:00
chme
b9117f9abd
[db] Remove unnecessary setting of query param fields to 0
2016-12-04 07:42:38 +01:00
chme
6c6f02fdfa
Rename "queue_item.item_id" to "queue_item.id"
2016-12-03 11:14:03 +01:00
chme
eb896a1085
[db] Fix loglevel
2016-12-03 11:12:19 +01:00
chme
0251f3c514
[db] Rename "queue_add_mediafileinfo" to "queue_add_file"
2016-12-03 11:12:19 +01:00
chme
b5bf1928ff
[db] Rename "plversion" to "queue_version", add missing init query for
...
queue_version
2016-12-03 11:12:19 +01:00
chme
6c7df96371
[db] Remove forward declaration of queue_fetch_byitemid
2016-12-03 11:12:19 +01:00
chme
6c66d39d91
[player] Fix segfault if player reaches end of queue, fix repeat single
2016-12-03 11:12:19 +01:00
chme
a0590ce548
[db/player] Icy metadata update
2016-12-03 11:12:19 +01:00
chme
c504abe451
Use queue db table instead of in memory queue struct
2016-12-03 11:11:33 +01:00
chme
8ebf2f9307
[db] Add functions to access/modify the queue table
2016-12-03 10:58:26 +01:00
ejurgensen
3921cf5732
Merge branch 'spwebapi2'
2016-11-27 22:54:06 +01:00
ejurgensen
bb2a73ddab
[spotify] Keep saved tracks through restarts + misc fixing up
2016-11-13 22:13:35 +01:00
chme
2c801ca6db
[db] Small code improvements (avoid hard coded values in query strings)
2016-11-12 12:35:22 +01:00
chme
f7aa3c225b
[db] Move initialization of new db into its own file (db_init.c)
2016-11-04 14:31:15 +01:00
ejurgensen
a99d1b2038
[db] Add song_length to group info ( fixes #265 )
2016-06-11 23:10:13 +02:00
ejurgensen
cbaea95ff4
[filescanner] Support for songdatereleased and songhasbeenplayed
2016-03-04 22:37:56 +01:00
chme
c1dcc0a937
[db] Make loading of playlistitem count optional
2016-02-21 18:05:11 +01:00
ejurgensen
bd75281340
[player] Save speaker name and rename raop_ to output_
2016-02-11 20:04:30 +01:00
chme
491bf54fdb
[directories/spotify] Init db with disabled spotify-root-directory and
...
enable only on successful login to spotify
2016-01-31 08:14:03 +01:00
chme
8600c21424
[db-upgrade] add column date_released to files table, add column name to
...
speakers table
2016-01-31 08:14:03 +01:00
chme
1a6565e512
[directories] Initialize root directories on db init
2016-01-24 18:51:22 +01:00
chme
7703a997c4
[db/filescanner/spotify] Replace filelist-view with separate
...
directories-table
to increase the performance of the mpd command 'lsinfo'
2016-01-24 18:51:22 +01:00
chme
3740486348
[db] Move database upgrade logic to separate file
2016-01-24 18:51:22 +01:00
chme
532e9c3a32
[spotify/artwork] Remove spotify songs after playlist update and delete
...
cached artwork for removed spotify songs
2016-01-16 17:02:57 +01:00
chme
461a956288
[mpd] Return the correct values for number of songs, artists, albums and
...
song length sum in the "stats" command (wrong values are still reported
for uptime, db_update and playtime)
2015-11-06 19:11:00 +01:00
ejurgensen
5125e24cfe
Let db_build_query_index_clause() always return an initialized idx, even on failure
2015-09-29 22:51:23 +02:00