Commit Graph

55 Commits

Author SHA1 Message Date
chme f0a6a48599 [player] Refactor queue_remove functions 2015-10-04 07:57:38 +02:00
chme 8e1834cdea Rename make_queue function and set as static 2015-10-04 07:57:38 +02:00
chme 1812848ee1 Move client protocol specific make_queue functions out of player.c/h 2015-10-04 07:57:38 +02:00
chme 1ed240d92c Fix memory leak due to missing free for evconnlistener 2015-09-29 22:42:09 +02:00
chme c6851eac9b [mpd] use the same image size as in raop_metadata_prepare (max 600x600)
to increase artwork cache hits
2015-07-18 07:34:48 +02:00
chme 1ab318d725 [mpd] support serving artwork over http 2015-07-18 07:17:21 +02:00
chme ceca9135c5 [mpd] add special handling to command "lsinfo" if the root directory was
passed as argument.

Clients like ympd and ncmpcpp are relying on this (deprecated) behavior
2015-06-14 07:11:17 +02:00
chme b9b3671d58 [mpd] add support for command "decoders" 2015-06-14 07:11:17 +02:00
chme 426e827712 [mpd] Return whole queue for command "playlistinfo" if given argument is
-1 (not a valid position in the queue)
2015-06-13 14:38:56 +02:00
chme 7f09438621 [mpd] support "date" argument in find and search commands 2015-05-30 05:56:53 +02:00
chme 2a04740ca2 [mpd] support "file" argument in list command 2015-05-30 05:56:52 +02:00
chme 4299de5ac7 [mpd] implement plchanges to report all songs in the queue as changed
(ignores the playlist version parameter).

This is necessary in order to get mpd clients (e. g. sonata) relying on
this command to display the queue.
2015-05-30 05:33:32 +02:00
ejurgensen a1e417c571 Rename count_info to fix issue #157 2015-05-26 21:24:10 +02:00
ejurgensen 8dd1e0fde2 Fix problem introduced with commit 475d5db where genres and composers don't get sorted 2015-05-26 21:10:28 +02:00
ejurgensen 79cdfebf34 Merge pull request #150 from chme/mpdidle
Add support for mpd idle command
2015-05-21 22:31:03 +02:00
chme 0b73233197 [mpd] remove libevent1 support 2015-05-21 07:15:05 +02:00
chme 41a08d1931 [mpd] rework listener events to use a bit map 2015-05-18 20:12:18 +02:00
chme 3886ec6638 Add version number for playlist (queue)
This is necessary to return a valid playlist id for mpd status command.
2015-05-09 07:46:33 +02:00
chme aa4a12cabe add events for playlist (queue), volume, speaker, options
(random/shuffle) changes
2015-05-09 07:46:33 +02:00
chme 7097dd15eb allow removing of listeners 2015-05-09 07:46:33 +02:00
chme 1714f3dee4 [mpd] move include of libevent from mpd.h to mpd.c 2015-05-09 07:46:33 +02:00
chme e156181121 [mpd] remove idle client if an eof or error occurred on the event buffer
(fixes segfault after closing the connection of an mpd client)
2015-05-09 07:46:33 +02:00
chme 600e48842f [mpd] idle command 2015-05-09 07:46:33 +02:00
chme 864315eaef [mpd] fix wrong log message 2015-05-09 07:35:15 +02:00
chme 68c392eb9e [mpd] ignore requests for client to client commands "subscribe",
"unsubscribe", "readmessages", "sendmessages"
2015-05-09 07:35:15 +02:00
chme decc482e2c [mpd] only return "id" attribute if song information is requested for
the current playlist

mpd does not expose a persistent song id, instead the id returned in
playlistinfo is a unique id for the song in the queue. The same song has
different ids if it occurs more than once in the queue.
2015-05-09 07:35:15 +02:00
chme 5d22d74dba [mpd] ignore requests for "sticker" 2015-05-09 07:35:15 +02:00
chme 91338c8548 [mpd] ignore requests for "channels" 2015-05-09 07:35:15 +02:00
chme fefd91fabc [mpd] support "track" parameter in commands "list", "find", "search" 2015-05-09 07:35:15 +02:00
chme ed8b69c118 [mpd] return proper error type if playlist does not exist 2015-05-09 07:35:15 +02:00
chme 1300b2f018 [mpd] support "disc" parameter in commands "list", "find", "search" 2015-05-09 07:35:15 +02:00
chme a03a9d1e7c [mpd] support "genre" in commands "find" and "search" 2015-05-09 07:35:15 +02:00
chme 0921675efa [mpd] implement command "searchadd" 2015-05-09 07:35:15 +02:00
chme 76011c927c [mpd] implement command "findadd" 2015-05-09 07:35:15 +02:00
chme b728db8470 [mpd] implement command "tagtypes" to return the list of supported tags 2015-05-09 07:35:14 +02:00
chme 670187387f [mpd] ignore requests for "urlhandlers" 2015-05-09 07:35:14 +02:00
chme eddcd8676d [mpd] ignore requests for "notcommands" 2015-05-09 07:35:14 +02:00
chme 696cd0b6b9 [mpd] fix command listplaylists after changing the enum for pl_type 2015-05-01 12:22:35 +02:00
chme 3a7cf212fb [mpd] fix command "list" for type "artist" 2015-04-25 05:48:28 +02:00
chme 12520f2f1f [mpd] cleanup: remove duplicate logging of error messages 2015-04-08 19:34:59 +02:00
chme a268f836e7 [mpd] fix command list for albumartist 2015-04-08 19:34:59 +02:00
chme b7d5b1650e [mpd] add support for count command 2015-04-08 19:34:59 +02:00
chme 5b0cb6588b [mpd] support for ipv6 2015-03-14 09:51:39 +01:00
chme f41e7014e4 [mpd] add support for commands 'listplaylists', 'listplaylist',
'listplaylistinfo', 'ping'; add support for additional tags
2015-03-10 22:15:33 +01:00
chme 4a1bff500a [mpd] fixes for commands noidle, list (handle special case with second
argument 'album'), addid (sql error if virtual path contains
character ') and fix error messages in various commands
2015-03-10 22:12:33 +01:00
chme 3fb6864216 [mpd] fix compile error on FreeBSD (thanks to Raivo Hool) 2015-03-08 09:39:33 +01:00
chme 2c0ce9cd56 [mpd] add support for speaker (de)activation through 'outputs',
'disableoutput', 'enableoutput', 'toggleoutput' commands
2015-03-07 18:55:42 +01:00
chme 3eab952867 fixup: rename db_mpd_build_query to db_mpd_start_query, removed unused
function from db.h
2015-02-15 13:59:35 +01:00
chme 7024f2f3e7 (basic) support for mpd commands 'find' and 'list' 2015-02-15 13:55:24 +01:00
chme 911b982815 support for mpd command 'search' 2015-02-15 09:51:38 +01:00