Commit Graph

96 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
3b39d417a1 if connection to mpd is lost, change mpd state to unknown 2010-03-25 00:26:01 +01:00
Andrzej Rybczak
6b396bfbf2 fix error codes handling
MPD_ERROR_* and MPD_SERVER_ERROR_* flags can have the same
value, so we need to store it separately in error_code.
2010-03-23 22:56:14 +01: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
a27332a825 get rid of using directives
these in ncmpcpp.cpp stay since a lot of memebers are used.
2010-01-22 19:17:35 +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
895c9177d5 fix toggle command 2010-01-03 16:21:56 +01:00
Andrzej Rybczak
05fc53ba32 make MPD::Connection::Toggle() run playback if player is stopped 2009-12-23 21:36:05 +01:00
Andrzej Rybczak
63178105c3 remove hack that concerns idle events mode.
fuck this. it's mpd problem, not mine (see bug 2612)
2009-12-23 16:23:33 +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
c005b7b303 reenable hack disabled with 0007ba40
it seems it's still needed ;X
2009-12-22 19:16:13 +01:00
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