chme
6e5d6791ff
[player/dacp/mpd/jsonapi] Combine seek commands into one with mode param
...
Also changes relative seeking behavior:
- seeking behind the the current track only switches to the previous
track, if we are not more than 3 seconds into the current track,
otherwise starts current track from the beginning
- seeking beyond the current track will start the next track from the
beginning
2019-10-20 14:36:21 +02:00
chme
d69f328973
[jsonapi] Support relative seeking
2019-10-20 14:36:21 +02:00
chme
dc9396886c
[jsonapi] Set correct artwork url for pipe input
2019-10-20 08:39:18 +02:00
chme
2846287169
[jsonapi] Add endpoint "/api/outputs/{id}/toggle" to toggle outputs
2019-09-26 08:00:03 +02:00
Christian Meffert
7925639f5b
Merge pull request #790 from chme/admin_settings
...
Introduce new settings for displaying the composer in the now playing page
2019-08-31 09:05:49 +02:00
whatdoineed2do/Ray
6ad3d8dbef
[jsonapi] potential memleaks on query_params.filter object
2019-08-28 21:35:29 +01:00
chme
2cc310b646
[jsonapi] Expose reading and updating settings through the JSON API
2019-08-25 10:39:16 +02:00
whatdoineed2do
a5987addd4
[db,jsonapi] case insensitive directory/file listing ( #784 )
...
* [db,jsonapi] case insensitive directory/file listing
* [jsonapi] file listing of playlist uses same VPATH ordering as per directory and files
* [db,jsonapi] sorting via existing S_VPATH
* [db] replace LOWER with COLLATE NOCASE
2019-08-21 22:54:34 +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
Christian Meffert
e608b763ef
Merge pull request #752 from whatdoineed2do/db-queue-quality
...
db queue to incl media quality info
2019-07-09 20:19:10 +02:00
whatdoineed2do/Ray
e0a18082f7
[web-src/jsonapi] move endpoint /api/update as PUT operation
2019-07-09 13:54:59 +02:00
whatdoineed2do/Ray
8c024387ae
[web-src/jsonapi] endpoint GET /api/update/meta -> PUT /api/rescan
2019-07-09 13:54:59 +02:00
whatdoineed2do/Ray
e9c1a59ad2
[jsonapi] expose force metadata rescan via /api/update/meta endpoint
2019-07-09 13:54:59 +02:00
whatdoineed2do/Ray
f194145b8e
[jsonapi] queue/track responses incl type/bitrate/samplerate/channels
2019-06-12 16:52:46 +01:00
chme
d35333139e
[jsonapi] Fix segfault if no default playlist directory is set in conf
2019-06-01 08:12:38 +02:00
ejurgensen
4f5966c9ff
[db] Speed up Q_PL query used by e.g. '/databases/1/containers' request
...
The previous solution would use subqueries to count the number of items and
streams in each playlist, which means that response time gets pretty slow if
there are many playlists.
This commit also includes a number of lesser db code changes.
2019-05-30 21:19:40 +02:00
chme
4434fe7a2c
[jsonapi] Check for empty playlist name in queue/save
2019-05-30 11:23:22 +02:00
chme
2b4b9c747f
[jsonapi] Add config options for saving playlists to config reply
2019-05-30 11:23:22 +02:00
whatdoineed2do/Ray
d28f7f43b7
[jsonapi,mpd,conf] save playlist via JSON api
...
- new endpoint api/queue/save?name= to .m3u via library_save()
- refact for common cfg for playlist save options
2019-05-30 07:23:04 +02:00
chme
f85df07308
[jsonapi] Respect order defined in smartpl expression in queue/items/add
2019-02-23 11:02:12 +01:00
chme
e078ba8ed0
[jsonapi] Use same order by clause when adding queue items by
...
expressions as is used in search tracks by expression
2019-02-23 11:02:12 +01:00
chme
a3f2551eea
[jsonapi] Support starting playback from position in queue/items/add
2019-02-23 09:41:58 +01:00
chme
3343e9cfc8
[jsonapi] Rename queue item "albumartist_id" to "album_artist_id"
...
Keeps it in sync with the naming in the track object. Also introduce a
helper function to add an int64 as a json string.
2019-02-14 08:22:50 +01:00
whatdoineed2do/Ray
17022c9103
[jsonapi] expose albumid/artistid persistent id on queue object
2019-02-12 09:21:39 +00:00
chme
0ded6d63bf
[db/jsonapi] New admin value for Last-Modified in JSON API header
...
This adds a new timestamp value "db_modified" into the admin db table.
In addition to the existing "db_update" admin value, this value is also
updated if rating, play-/skip-count or seek changes for a
media_info_file (files db table).
This should improve the caching behavior in clients of the JSON API
(especially the player web interface) in refreshing its data if some of
this values changes.
2019-01-31 09:42:53 +01:00
chme
3bc15e1278
[jsonapi] Add endpoint to update a tracks rating and/or play_count
...
New endpoint is PUT api/library/tracks/[id] and supported query
parameters are:
- rating: with values between 0 and 100
- play_count: with values "reset" (resets play_count and skip_count) or
"increment" (increments play_count)
2019-01-31 09:42:53 +01:00
chme
b9a7ce7dd2
[jsonapi] Add endpoint to retrieve details for a single track by its id
2019-01-31 09:42:53 +01:00
chme
9fff02841b
[jsonapi] Fix error in web interface files-view if the library directory
...
end with a trailing slash
2019-01-28 15:00:18 +01:00
chme
116c315a84
[player] Rename struct spk_info to player_speaker_info
2019-01-22 17:47:15 +01:00
chme
343c583229
[jsonapi] Support changing volume by the given step (increase/decrease
...
volume)
2019-01-21 11:11:20 +01:00
chme
c165c55b5b
[jsonapi] Add player/toggle endpoint
...
Toggles playback state depending on the current player state:
- playing --> pause
- paused, stopped --> play
2019-01-20 12:03:50 +01:00
chme
fb60a05228
[jsonapi] Add support for "playback", "clear" and "shuffle" parameters
...
in
"queue/items/add" endpoint
2019-01-05 07:21:36 +01:00
chme
77a19a6df9
[jsonapi] Add checks for failed playback start and return error code
2019-01-02 09:51:54 +01:00
chme
0f4cbb3375
[http/jsonapi] Use strtok_r instead of strtok
2019-01-02 09:51:54 +01:00
chme
b3853ef0f3
[jsonapi] Check for empty "uris" parameter in queue/items/add (prevents
...
a segfault) and log failed requests in error log
2019-01-02 09:51:54 +01:00
chme
2ead24a2f7
[jsonapi] Add optional expression parameter to queue/items/add endpoint
...
Adds support to add tracks by a smart pl query expression
2019-01-02 09:51:54 +01:00
chme
ca99bf8718
[jsonapi] Sort files by filename and return directories in api/config
2019-01-02 09:51:54 +01:00
whatdoineed2do/Ray
e9f92ba1a7
[jsonapi] correct count of tracks added returned
2018-12-24 19:27:19 +00:00
chme
dcbe503686
[jsonapi] Return number of items added in queue/items/add endpoint
...
response
2018-12-20 11:19:47 +01:00
chme
2b7ff60771
[jsonapi] Fix playing from position if player state is shuffled
2018-12-20 11:19:47 +01:00
chme
b558e3498d
[jsonapi] Add rating and title_sort to track object
2018-12-20 11:19:47 +01:00
chme
e6dc2a5845
[jsonapi] Add new endpoint "api/library/files"
...
This endpoint allows traversing the directory tree of the local library.
2018-12-18 08:28:19 +01:00
whatdoineed2do/Ray
cfadcc184f
[jsonapi] support composer in queue and track objs
2018-11-30 17:22:21 +01:00
chme
89ca5e8ba9
[jsonapi] Fix wrong artwork url for non library queue items and streams
...
Add check against the special file_id DB_MEDIA_FILE_NON_PERSISTENT_ID to
identify if a queue item is not in the library. And always prefer the
artwork url in the queue item before the artwork for the library file.
2018-11-25 10:07:55 +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
d2390933e9
[jsonapi] Support "position" parameter in queue/items/add endpoint
2018-10-25 19:36:43 +02:00
ejurgensen
41126d7be4
[artworkapi/jsonapi] Retrieve artwork for track/album/artist
2018-10-07 21:54:38 +02:00
chme
7252b3e509
[db] Add support to add items to the queue at specified position
2018-09-16 09:36:43 +02:00
whatdoineed2do
e3ce003190
genre search functionality ( #559 )
...
* [jsonapi] Add support for listing albums for genres
2018-09-02 09:05:18 +02:00
ejurgensen
fde0a28142
Support for skip_count and time_skipped file metadata
2018-08-18 22:56:27 +02:00