ejurgensen
153eb40b6d
[db] Remove some definitions of ARTWORK_XXX
...
The artwork db field should only be used to save media file artwork metadata,
which mostly means whether it has embedded artwork or not. It should not be
used to save where we found artwork for the file, since that is not static.
So this commit removes for instance ARTWORK_OWN, ARTWORK_DIR etc., which we
weren't using anyway.
2020-04-25 22:07:10 +02: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
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
abdc0d6d27
[library] Some refactoring of the library module
...
Misc refactoring, e.g. alignment of how modules save tracks and playlists, incl
use of mfi and pli. Also try to avoid direct calls between library and player.
2020-02-08 10:55:15 +01:00
whatdoineed2do/Ray
6120551cf5
[spotify/library] add missing metarescan
2020-02-06 18:38:21 +00:00
chme
a5c2d6c0f8
[spotify] Return widest image if no max width is given
2019-08-25 11:24:14 +02:00
chme
a87059265d
[spotify] Require Spotify web API scope playlist-read-collaborative
...
Also exposes granted and required Spotify web API scope through the
forked-daapd JSON API.
2019-08-03 12:55:53 +02:00
chme
435df3fe8f
[spotify] Add support for adding spotify artist tracks to the queue
2019-02-20 10:10:53 +01:00
chme
3d494d5f58
[spotify] Switch to new web api playlist endpoints
...
The old playlist endpoints containing the user are deprecated and will
eventually be removed
(https://developer.spotify.com/community/news/2019/01/15/update-changes-to-playlist-uris/ ).
2019-02-20 09:30:02 +01:00
chme
733a521df8
[spotify/artwork] Add spotify webapi as an additional artwork source
2019-02-05 16:04:08 +01:00
chme
dc020cc3ac
[db/filescanner/spotify] Set directory path
2018-12-18 08:28:19 +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
bb959fdec9
[spotify] Use added_at as time_added and time_modified
...
Saved albums and playlist items have a "added at" attribut use it as
created instead of probably unexpected current time.
2018-11-24 06:31:39 +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
8d8663e93d
[db/queue] Support adding non-library items at a given position to the
...
queue
2018-10-25 19:36:43 +02:00
chme
7bab990eb3
[spotify/jsonapi] Expose access token and user country in JSON API
...
spoitfy endpoint
2018-05-10 07:02:15 +02:00
chme
f108b6b498
[spotify] Support adding arbitrary spotify-uris to the queue
...
Allows adding non-library spotify tracks to be added to the queue. The
path given to queue_add should either be a spotify track, album or
playlist uri.
2018-05-10 07:02:15 +02:00
chme
e6a5168c0d
[spotify] (Re-) add track-relinking for playlists and albums
...
Appending the market parameter got lost in the refactoring and therefor
not track-relinking happend
2018-05-09 22:47:37 +02:00
chme
116f7a0253
[spotify] Log progress of scanning saved albums/playlists
2018-05-09 22:47:37 +02:00
chme
cfc5fef88d
[spotify] Refactor spotify_webapi
2018-05-09 22:47:37 +02:00
chme
eaab6f887b
[spotify] Decoupling of the spotify webapi from libspotify integration
...
Separation of scanning Spotify songs into the library (spotify_webapi.c)
and playing Spotify songs through libspotify (spotify.c).
2018-05-09 22:47:37 +02:00
ejurgensen
4802823f3c
Revert "[spotify/artwork] Load artwork for spotify through the wep api" and "[spotify] Thread safety for the webapi access"
...
Wait with this until it becomes necessary or we can achieve same performance as libspotify
This reverts commit 997b4da4ad
and 2da993cc7b
2017-12-27 18:51:11 +01:00
chme
2da993cc7b
[spotify] Thread safety for the webapi access
...
The web api might be accessed from different threads (library, worker,
dacp), therefor protect from concurrently running refresh-token requests
(accessing the globals in spotify_webapi.c)
2017-12-25 19:52:40 +01:00
chme
997b4da4ad
[spotify/artwork] Load artwork for spotify through the wep api
2017-12-25 19:52:40 +01:00
chme
4800f9943b
[db] Rename 'ADMIN_*' defines to 'DB_ADMIN_*'
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
89fc1fa5b8
[misc/spotify] Move json helper functions into its own file
2017-09-15 06:42:21 +02:00
chme
29c0264444
[spotify] Add spotify status info and notify about status changes
2017-09-15 06:42:21 +02:00
ejurgensen
1aa8072e68
[misc] Change name of string_printf to safe_asprintf
2017-05-05 20:00:51 +02:00
chme
6887ff9d7b
[spotify] Use string_printf instead of asprintf
2017-05-01 10:21:58 +02:00
chme
6c97448e2f
[spotify] Remove log messages after token request
...
The whole response is already written to the log in debug mode
2017-03-11 09:55:32 +01:00
chme
1f4e474671
[spotify] Retrieve playlist tracks based on user country ( #352 )
...
This avoids adding unplayable items to the library and due to the active
track relinking should make additional tracks playable by linking to a
playable version of the track.
2017-02-05 13:56:12 +01:00
Scott Shambarger
a837389ac5
Minor change: remove unused include, init variable.
2017-01-21 08:51:51 -08:00
chme
825236c8bb
[spotify_webapi] Fix memory leaks
2017-01-20 19:00:11 +01:00
chme
a15923c377
[spotify] Fix for expired spotify access token and some cleanup
2017-01-13 19:20:24 +01:00
chme
2cfb4b6a28
[spotify] Simplify parsing of artist/album-artist name
...
forked-daapd does not support a 1:n relationship between tracks and
artists. Just take the first artist the spotify web api returns
(libspotify does also return only one artist, so this should not
introduce a regression).
2017-01-13 18:56:37 +01:00
chme
f632789f8b
[spotify] Set missing values for year, artwork, type, codectype,
...
description and improve logging
2017-01-13 18:56:37 +01:00
chme
ab3582dd69
[spotify_webapi] Cleanup: remove unused functions
2017-01-13 18:56:37 +01:00
chme
99945fa576
[spotify] Rescan of single playlists if update trigger received from
...
libspotify (Readds "spotify:savedtracks" playlist to avoid deletion of
saved tracks)
2017-01-13 18:56:37 +01:00
chme
0bea83cafa
[spotify] Scan saved albums and playlist using the spotify web api
2017-01-13 18:56:37 +01:00
chme
5efadb6fc2
[spotify_webapi] Add separate file for accessing the web api
2017-01-13 18:56:37 +01:00