Commit Graph

63 Commits

Author SHA1 Message Date
Andrzej Rybczak
9c02bbf596 media library/tag editor: block idle while doing hierarchical searches
idle should be blocked in such cases since it would be enabled and
disabled a few times by each mpd command, which makes no sense and
slows down the whole process.
2010-06-17 16:41:49 +02:00
Andrzej Rybczak
230b6ae3e3 make MPD::Connection::Version() return integer instead of float
full version is always 0.xx.0, where xx is current
version of protocol, so why bother with zeros...
2010-04-01 12:54:05 +02:00
Andrzej Rybczak
08daa61907 update copyright notices 2010-01-30 16:24:24 +01:00
Andrzej Rybczak
df15fe2bf4 add support for adding random artists/albums to playlist 2010-01-22 22:24:44 +01:00
Andrzej Rybczak
153081158d add support for built-in mpd searching in search engine 2010-01-22 21:35:34 +01:00
Andrzej Rybczak
ef6719f5bb make media library show more songs (with incomplete tags etc.) 2010-01-05 20:08:30 +01:00
Andrzej Rybczak
2fb20fd572 add config options for communication mode with mpd (polling for default)
idle support in ncmpcpp is marked experimental since its support
in mpd is not ready for general use in full featured clients
(see bug 2612)
2009-12-23 16:21:11 +01:00
Andrzej Rybczak
5b2dbe026c do not delete items from playlist if sending command delete failed 2009-11-05 22:16:54 +01:00
Andrzej Rybczak
0a95aebd7c improve elapsed time handling
this also throws away hack that was used to count elapsed
time locally while polling mpd, it's not needed anymore.
2009-10-30 20:04:47 +01:00
Andrzej Rybczak
95ce4065ae add event handler for MPD_IDLE_OUTPUT notification 2009-10-27 02:30:28 +01:00
Andrzej Rybczak
dd04406ee5 poll both stdin and mpd using one select()
this allows for immediate reading mpd events
2009-10-25 20:44:07 +01:00
Andrzej Rybczak
e112e0d975 use select() instead of poll() as it's portable 2009-10-25 03:25:26 +01:00
Andrzej Rybczak
3e99bba5b8 use idle notifications instead of polling mpd all the time 2009-10-25 02:25:51 +02:00
Andrzej Rybczak
1a3e10dab7 new feature: toggle replay gain mode (requires >=mpd-0.16) 2009-10-23 18:20:52 +02:00
Andrzej Rybczak
03f6fd904f new screen: mpd server info 2009-10-11 17:03:00 +02:00
Andrzej Rybczak
833f608d60 shorten long names in messages displayed in statusbar 2009-10-10 18:37:53 +02:00
Andrzej Rybczak
b979189111 pass to MPD::Connection::AddSong() another parameter - position to add 2009-10-10 16:23:00 +02:00
Andrzej Rybczak
d82498ea16 throw away isConnected variable and use itsConnection instead 2009-10-06 07:18:46 +02:00
Andrzej Rybczak
0d9f6fab7d add MPD::Connection::Toggle() and throw away MPD::Connection::Execute() 2009-09-23 05:47:51 +02:00
Andrzej Rybczak
dec7bd9c0e make ncmpcpp use external libmpdclient (--without-taglib and --without-iconv) 2009-09-22 22:37:33 +02:00
Andrzej Rybczak
2f971147b1 change all Mpd.GetState </> psPlay/psStop to (!)Mpd.isPlaying() 2009-09-18 02:17:30 +00:00
Andrzej Rybczak
30b8622776 get total time from mpd status, not from currently playing track
it seems that even if track info doesn't provide total track length,
mpd status does, which allows for seeking and displaying progressbar.
2009-09-09 18:32:57 +02:00
Andrzej Rybczak
4f3040e0ec move code responsible for adding selected items to playlists to misc.cpp 2009-08-29 23:53:36 +02:00
Andrzej Rybczak
7a85a15ff2 simplify code responsible for adding items with 'a' more 2009-08-25 02:47:05 +02:00
Andrzej Rybczak
216b0b6af6 new feature: display bitrate in statusbar (optional, disabled by default) 2009-08-24 01:37:44 +02:00
Andrzej Rybczak
2eb913fe22 define MPD::Connection handler as an object, not pointer 2009-07-04 06:07:00 +02:00
Andrzej Rybczak
5a2853b36a new feature: outputs screen 2009-05-26 22:07:08 +02:00
Andrzej Rybczak
dd266b0103 new feature: add random songs to playlist 2009-05-24 22:30:02 +02:00
Andrzej Rybczak
ecd4c8cc17 get rid of C style casts 2009-05-21 23:51:56 +02:00
Andrzej Rybczak
00dcadcc8a add support for consume mode
info about this feature can be found in mpd docs.
2009-04-01 14:51:09 +02:00
Andrzej Rybczak
5f41640cd9 handle single command and remove hacks used as substitute for it
mpd-git has single command, which provides functionality
of both "repeat one" and "stop after current track" modes.

repeat one = single && repeat
stop after current track = single && !repeat
2009-03-27 16:40:55 +01:00
Andrzej Rybczak
f78e88e6aa do not fetch status after succesful setvol command, set it locally 2009-03-23 16:30:12 +01:00
Andrzej Rybczak
ab265f2fdf do not fetch mpd_Stats from mpd as it's unneded 2009-03-22 17:52:27 +01:00
Andrzej Rybczak
24c37eb592 do not store commands list in MPD::Connection
it should have sent commandlist begin and end commands from the beginning,
having separated functions just to handle queueing commands was plainly ugly.
2009-03-12 17:30:25 +01:00
Andrzej Rybczak
a4599fffe7 speed up browsing media library
the way media library was searching for albums
was wrong and by the way totally inefficient.
2009-03-07 12:26:16 +01:00
Andrzej Rybczak
f162a7b880 new feature: playlist sorting (Ctrl-V by default) 2009-02-18 20:08:50 +01:00
Andrzej Rybczak
5d2daab416 new feature: apply filter to screen (Ctrl-F)
if one applies a filter, only items that contain this
filter will be displayed. works on all screens.
2009-02-17 17:57:55 +01:00
Andrzej Rybczak
32bac776e7 cleaning 2009-02-17 08:29:40 +01:00
Andrzej Rybczak
ba6c2db0b1 improve resizing 2009-02-16 00:37:03 +01:00
Andrzej Rybczak
9cc1689a71 make changes from 7b6521a3 compatible with <mpd-0.14 2009-01-30 19:47:14 +01:00
Andrzej Rybczak
0c9e10091f update fsf address and copyright info 2009-01-17 00:52:08 +01:00
Andrzej Rybczak
c71f07df6d eliminate remained compiler warnings 2008-12-12 22:50:22 +01:00
Andrzej Rybczak
c06861f4ee initialize all fields in MPD::StatusChanges to zeroes 2008-12-09 10:46:42 +01:00
Andrzej Rybczak
5c0af01cca put mpd connection related things into namespace 2008-12-09 10:16:38 +01:00
Andrzej Rybczak
51e7f56123 fix adding items to playlist 2008-11-07 21:41:16 +01:00
Andrzej Rybczak
c64e3a9b3b use size_t instead of int where it's appropriate 2008-11-06 20:07:42 +01:00
unK
beee0bc9d3 add support for browsing local filesystem 2008-10-27 20:35:02 +01:00
unK
a85cfcd8eb several code clean-ups and corrections 2008-10-07 10:14:21 +02:00
unK
4ab4e72c97 implement argv handler and basic mpc commands 2008-10-05 22:41:29 +02:00
unK
9fd373625d add to libmpdclient support for getting list of any tag type 2008-10-05 19:30:42 +02:00