Christian Meffert
1bf094ed81
Merge pull request #906 from chme/playlist_folder2
...
JSON API - Support for Playlist Folders
2020-03-08 07:31:09 +01:00
ejurgensen
51b7a8854c
[scan] Add support for MUSICBRAINZ_ALBUMID tag (fixes issue #914 )
2020-03-06 19:07:06 +01:00
ejurgensen
37510db748
[mdns] Fix possible incorrect library ID in _dacp._tcp ( fixes #899 )
...
If the library ID started with one or more 0's then it would not be printed in
the announcement, which meant that DACP commands would not work due to
incorrect ID.
2020-03-02 19:53:43 +01:00
ejurgensen
eb049489b4
Merge pull request #913 from whatdoineed2do/http-slist-leak
...
[http] leak fix for curl_slist_append()
2020-02-29 18:22:09 +01:00
whatdoineed2do/Ray
81f4834814
[http] leak fix for curl_slist_append()
2020-02-28 21:57:10 +00:00
ejurgensen
64c6007aad
[db] Fix memleak from unexpected return value, closes issue #909
...
On success the function was returning SQLITE_OK = 100, not 0, which made
json_reply_library think that the operation failed.
Credit @whatdoineed2do
2020-02-25 21:58:18 +01:00
chme
6ba45e8d94
[artwork] Remove libspotify based artwork handler
2020-02-25 05:41:49 +01:00
chme
73a9ac16d6
[README] Update JSON API docs with playlist folders support
2020-02-24 21:27:53 +01:00
chme
36ebf7d06c
[jsonapi] Add support for playlist folders
2020-02-24 21:27:53 +01:00
ejurgensen
248f82f3c8
[db] Fixup fixup in commit #00de0a3 (upgrade dbvers to 21.3)
...
Forgot to include db_upgrade to v21.3
2020-02-23 21:26:00 +01:00
ejurgensen
bdc630baca
Merge branch 'artwork_onlinesrc1'
2020-02-23 20:31:40 +01:00
ejurgensen
1ed10771f1
[artwork] Get enablement of online srcs from settings
...
Settings will take care of consulting the cfg file now
2020-02-23 20:30:35 +01:00
ejurgensen
9b9d2d0fb7
[settings] Add handlers to set default settings, e.g. from the cfg file
2020-02-23 20:30:35 +01:00
ejurgensen
5736217315
[db] Change prototype of db_admin_getxxx() functions
...
Makes it possible for caller to distinguish between "not set" and "set to 0".
2020-02-23 20:30:35 +01:00
ejurgensen
afa1a07a42
[artwork] Fix handling of cache + enable online srcs via config
...
* Don't save artwork for permanent items (file + Spotify) to the stash. The
stash is only for short term artwork.
* If a request comes with a different max_w/max then search the online source
again.
* Make artwork requests thread-safe by mutex protecting the search history.
* Add config option
2020-02-23 20:30:35 +01:00
ejurgensen
c674f84497
[json] Make clients reload artwork when we have new http metadata
2020-02-23 20:30:35 +01:00
ejurgensen
ad9ebb75c6
[artwork] Refinement of online artwork search
...
* Add system to avoid making too many futile requests + repeated requests
* Fixup Spotify artwork search (use type=track, type=album gave empty results)
* Include stash caching in artwork_get_byurl()
2020-02-23 20:30:35 +01:00
ejurgensen
8261fb8e59
[http] Don't return zero-length ICY title metadata
2020-02-23 20:30:35 +01:00
ejurgensen
9068c66dcd
[cache] Minor changes so "const char *" path arguments are accepted
2020-02-23 20:30:35 +01:00
ejurgensen
2651a979fe
[inputs] Fix issue where input metadata would not be erased
...
When playing a stream, the input metadata is transferred to the queue_item.
However, that was not done if there was no input metadata, which meant that
old metadata was not getting erased.
2020-02-23 20:30:35 +01:00
ejurgensen
b43e174baf
[logger] Show long log messages truncated
2020-02-23 20:30:35 +01:00
ejurgensen
a289135325
[artwork] Construct online src querys based on data_kind
...
For http streams we don't have an album name to search for. Plus we don't
want to cache those images.
2020-02-23 20:30:35 +01:00
ejurgensen
b73f33f8e9
[artwork] Use settings to enable online sources
2020-02-23 20:30:35 +01:00
ejurgensen
18cf2dbbbf
[misc] Change json_drilldown to _select and fix error case
2020-02-23 20:30:35 +01:00
ejurgensen
70f0ff1f61
[artwork] Support for online artwork sources - WIP
...
* Discogs
* Spotify
* Cover Art Archive
2020-02-23 20:30:35 +01:00
ejurgensen
15b18e26b7
[http] Let the curl https client follow up to 5 redirects
...
Requests for artwork to Cover Art Archive require redirects. Perhaps there are
also some playlist requests that will benefit from this.
2020-02-23 20:30:35 +01:00
ejurgensen
937f4431f8
[misc] Add json_drilldown() function
...
Will descend into a json object along the path set by a list of keys
2020-02-23 20:30:35 +01:00
ejurgensen
d86ca1176d
[misc] Add an in-place string replacement function
2020-02-23 20:30:35 +01:00
ejurgensen
d90cf953dc
Merge branch 'whatdoineed2do-daap-support-date_released'
2020-02-23 20:27:13 +01:00
ejurgensen
00de0a3f76
[db] Fixup commit #1edfadc
2020-02-23 20:25:22 +01:00
whatdoineed2do/Ray
3a48864001
[smartpl] support date_realeased
2020-02-23 20:25:22 +01:00
whatdoineed2do/Ray
de665fc6c8
[daap] honor requests to sort by 'releasedate'
2020-02-23 20:25:22 +01:00
whatdoineed2do/Ray
78194807db
[db] add S_RELEASEDATE and idx
2020-02-23 20:25:22 +01:00
Christian Meffert
80921a71a4
Merge pull request #901 from whatdoineed2do/json-spotify-token-leak
...
Json spotify token leak
2020-02-22 08:27:32 +01:00
ejurgensen
b40e691e6e
[db] Fix memleak of mfi->url
...
Credit @whatdoineed2do
2020-02-16 21:16:33 +01:00
whatdoineed2do/Ray
3049b3e70e
[jsonapi] spotify token leak
2020-02-14 21:10:15 +00:00
ejurgensen
646dd44dd9
Silence unused var/func warnings for autogenerated ANTLR files
2020-02-08 21:24:25 +01:00
ejurgensen
f4cb0fb79d
[db] Error checking for alloc failure
2020-02-08 16:10:33 +01:00
ejurgensen
e9d1a2475e
[db] Fix memleak on error from prev commit
2020-02-08 15:17:34 +01:00
ejurgensen
541a1a6701
[db] Orphan nested playlists if parent is deleted/cleared
...
Also align db_pl_delete_bypath with db_pl_delete by making it a wrapper.
2020-02-08 13:41:26 +01:00
ejurgensen
84aced0a3d
[scan] Fix exit and error message if nested playlist is invalid
2020-02-08 13:38:24 +01:00
ejurgensen
6b007dcd26
[scan] Fixes for #d2f0d7b
...
* Don't treat m3u's with m3u URL's as nested playlists
* Dereference playlist paths in the m3u's
2020-02-08 12:11:14 +01:00
ejurgensen
d2f0d7b53a
Merge branch 'playlists1'
2020-02-08 11:16:02 +01:00
ejurgensen
5295d787ad
[scan] Change library_playlist_save return + fix Spotify
...
* fix Spotify invalid mem access
* fix clearing of Spotify files
2020-02-08 10:55:15 +01:00
ejurgensen
da29fa5f93
[scan] Make sure new, nested playlists are scanned
...
During scanning we might find a new, nested playlist (so inside another m3u),
which we will then save. When the scanner then reaches the actual playlist file,
we must make sure to scan the contents of it. This means the timestamp when
saving the first time has to be set to a dummy value.
2020-02-08 10:55:15 +01:00
ejurgensen
4b60da5fb4
[scan] Minor changes to smart pl scanner
2020-02-08 10:55:15 +01:00
ejurgensen
4c86798182
[scan] Fix bug added to iTunes scanner
...
Incorrect title for meta playlist used in commit 9be7d8f
2020-02-08 10:55:15 +01:00
ejurgensen
77a8de3bea
[scan] Fix db_pl_add() so it always returns correct id
2020-02-08 10:55:15 +01:00
ejurgensen
d94cf3f07f
[scan] Add option to let m3u tags override ICY metadata (issue #891 )
2020-02-08 10:55:15 +01:00
ejurgensen
cac4b14e6f
[conf] Add missing stdint.h include
2020-02-08 10:55:15 +01:00