Commit Graph

82 Commits

Author SHA1 Message Date
Andrzej Rybczak
ea4c035c4a send idle command immediately after actions that doesn't change mpd status 2009-12-18 23:44:21 +01:00
Andrzej Rybczak
0007ba4082 remove hack that guaranteed proper status update (not needed anymore)
it's fixed for mpd-git, newest mpd-0.15.x doesn't seem to suffer
from this bug anymore, mpd-0.13 doesn't support idle. no idea about
mpd-0.14 though, but come on. if you use it, upgrade.
2009-12-18 23:44:15 +01:00
Andrzej Rybczak
b83adc01b9 check for errors after calling status updater 2009-11-13 15:30:02 +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
60d932ef68 fix 'db update' flag not being updated if mpd is stopped 2009-11-02 05:29:49 +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
dfb4653669 fix MPD::Connection::Add() 2009-10-28 19:23:43 +01:00
Andrzej Rybczak
95ce4065ae add event handler for MPD_IDLE_OUTPUT notification 2009-10-27 02:30:28 +01:00
Andrzej Rybczak
9f5e9e60ff use idle mask to see what changed instead of comparing old and new status 2009-10-25 21:16:21 +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
8a14d08cd9 fix detection if database has been updated 2009-10-08 16:16:47 +02:00
Andrzej Rybczak
b0943c28c2 fix adding songs to playlist (broken by d82498ea) 2009-10-06 11:11:59 +02:00
Andrzej Rybczak
d82498ea16 throw away isConnected variable and use itsConnection instead 2009-10-06 07:18:46 +02:00
Andrzej Rybczak
b0212a3779 fix MPD::Connection::GetDirectories()
they should return only dirs from main dir, not from all subdirs
2009-10-04 16:14:45 +02:00
Andrzej Rybczak
de6db568c1 fix broken compilation due to lack of setters for mpd_song 2009-10-04 16:10:37 +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
08cb912424 fix Connection::AddSong() 2009-09-23 04:12:53 +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
6843b98627 throw away all NULLs and replace them by 0s 2009-08-30 17:43:13 +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
f60cc71b91 some MPD::Song improvements and syntax simplifications 2009-07-05 14:13:18 +02:00
Andrzej Rybczak
df051bf674 remove using declarations 2009-07-05 12:19:22 +02:00
Andrzej Rybczak
9dab25e02c use prefix ++ instead of postfix where available 2009-07-04 06:41:35 +02:00
Andrzej Rybczak
2eb913fe22 define MPD::Connection handler as an object, not pointer 2009-07-04 06:07:00 +02:00
Andrzej Rybczak
ff3e90d91d fix database update 2009-06-29 02:19:40 +02:00
Andrzej Rybczak
c4d88133bd do not attempt to change volume if requested value is <0 or >100 2009-06-28 05:25:50 +02:00
Andrzej Rybczak
450bf1b636 initialize screens only if necessary 2009-06-26 18:48: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
4c8a70aef5 do not allow empty search constraints with mpd < 0.14* 2009-04-28 16:33:20 +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
7c205e70eb fix displaying update flag ('U') immediately after succesfully sent command 2009-03-27 17:08:15 +01: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
8e350292ad ...but at first check if there is callback to invoke. 2009-03-22 20:06:03 +01:00
Andrzej Rybczak
9270a83a78 invoke callback immediately after sending update command succesfully 2009-03-22 20:01:39 +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
d1d1011eeb make function 'clear' in playlist editor clear selected playlist 2009-03-17 18:24:35 +01:00
Andrzej Rybczak
6768e3cdaa change char * to const char * in libmpdclient where appropriate to avoid casts 2009-03-12 18:29:13 +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