Commit Graph

171 Commits

Author SHA1 Message Date
craig.p.drummond
8de06f3a8d After editing files in tag editor, editing in track organizer, adding new files, or removing exisint files, only ask MPD to update folders that have changed. 2014-02-27 17:38:28 +00:00
craig.p.drummond
feafcbb19a When waiting for replies from MPD, use Qt's standard timeout value of 30s. While the socket is still connected, Cantata will wait up to 4 times the timeout value. Therefore, the actual timeout has increased to 2minutes!
BUG: 422
2014-02-25 19:23:30 +00:00
craig.p.drummond
4ab8732487 Enable 'refresh db' command for mopidy. Update will not reall yhappen, but Cantata will delete its caches, and reload these 2014-02-05 19:22:59 +00:00
craig.p.drummond
5e7a880431 Need to quote boolean (1/0) params for mopidy.
BUG: 407
2014-02-04 19:11:05 +00:00
craig.p.drummond
d59fa8d83f Only want local files from Mopidy for library and folders 2014-02-04 19:10:18 +00:00
craig.p.drummond
8432f3e608 Simplify MPD update 2014-01-31 19:51:29 +00:00
craig.p.drummond
2330864315 Use differnt album 'keys' for playqueue, and playlist. When Moopidy is used, its possible there might be *lots* of differnt keys - and we can reset the playqueue keys when the playqueue is cleared. 2014-01-22 19:30:52 +00:00
craig.p.drummond
b17f5aec22 Check if server is mopdiy, when handling "incorrect arguments" error code 2014-01-22 19:28:31 +00:00
craig.p.drummond
02ba1c464a dbPlaytime will also be 0 if this is a mopidy server 2014-01-22 19:27:55 +00:00
craig.p.drummond
238019a2f3 Try to detect if we are connected to Mopidy, and act accordingly 2014-01-22 19:23:26 +00:00
craig.p.drummond
014afe7d94 Ignore Mpodiy's "incorrect arguments" error code for crossfade and replaygain mode. The commands are not supported by Mopidy. 2014-01-21 20:20:46 +00:00
craig.p.drummond
4853b27f33 Mopidy seems to require integer arguments to be quoted! 2014-01-21 20:04:45 +00:00
craig.p.drummond
054465656c Decode Mopidy local:track:file paths 2014-01-21 18:57:47 +00:00
craig.p.drummond
e16ae654d2 Dont need to pass "/" to first lsinfo call 2014-01-21 18:57:13 +00:00
craig.p.drummond
4e3824be9e Cache folder listing too 2014-01-10 20:00:10 +00:00
craig.p.drummond
2f24b3fd9b Results of cppcheck... 2014-01-08 19:49:48 +00:00
craig.p.drummond
18a3d351a5 If listallinfo fails, usr lsinfo recursively
BUG: 379
2014-01-08 19:43:05 +00:00
craig.p.drummond
ab7ffecca3 Update (c) year 2014-01-06 19:32:05 +00:00
craig.p.drummond
da4745b207 If listallinfo fails, and using MPD>=0.18, inform user to increase MPD's buffer size 2014-01-03 19:01:28 +00:00
craig.p.drummond
c784be119b Fix error message reporting 2014-01-03 19:00:33 +00:00
craig.p.drummond
477f386854 Show offending cue file / playlist in error message, when attempting to add these to a stored play list.
BUG: 372
2013-12-31 09:09:15 +00:00
craig.p.drummond
a035648dd9 Increase max-per-add to 10000 2013-12-30 12:14:49 +00:00
craig.p.drummond
6fa75e19e7 Allow 'add' chunk size to be configured via config file. 2013-12-30 09:59:50 +00:00
craig.p.drummond
0155bf35dd Also shorten command list when logging that it failed! 2013-12-30 09:49:16 +00:00
craig.p.drummond
3df1de9733 When adding files to playqueue, only add in batches of up to 2000 songs.
BUG: 365
2013-12-30 09:47:34 +00:00
craig.p.drummond
36f2f9cd77 Add more debug to sendCommand 2013-12-29 18:23:14 +00:00
craig.p.drummond
991830f1d7 Use a timeout of 2 seconds per 100K bytes of data - therefore, Cantata will wait longer to write the data of a large command, and read its response.
BUG: 365
2013-12-29 14:44:06 +00:00
craig.p.drummond
f218bb5a3c Improve error message if 'playlist_directory' does not exist.
BUG: 358
2013-12-26 20:54:30 +00:00
craig.p.drummond
14c5c192a4 Register QSet<qint32> meta-type 2013-12-25 21:33:17 +00:00
craig.p.drummond
3efbf60f23 When checking for Cantata streams - also check CDDA. Needed for HTTP server, so that it know which Cantata files to serve. 2013-12-24 19:57:30 +00:00
craig.p.drummond
73fae91861 Improve internal HTTP security - only server files to MPD host, and only serve files in playqueue.
BUG: 356
2013-12-24 19:15:51 +00:00
craig.p.drummond
21b3cf37a3 Preserve priorities when undo/redo 2013-12-19 20:08:24 +00:00
craig.p.drummond
bcf864444f Add 'Search' tab - uses MPD for search. 2013-12-18 19:15:19 +00:00
craig.p.drummond
09a8a0fb51 Basic undo/redo support for playqueue. 2013-12-17 21:12:27 +00:00
craig.p.drummond
b3ba4e8d03 If command fails without recieving an error - then display "Unknown" allong with the command.
BUG: 341
2013-12-10 19:48:38 +00:00
craig.p.drummond
aabac89d68 More consistent .cue file detection - move code into Song class 2013-12-08 15:56:01 +00:00
craig.p.drummond
4f85c08501 Only show composer field in tag editor if it is one of the MPD supplied tags 2013-12-05 19:40:46 +00:00
craig.p.drummond
73e57beeb1 When shuffling albums, only start to play if was playing before shuffle 2013-11-27 19:40:18 +00:00
craig.p.drummond
3cd243ed9e readReply() should be static 2013-11-27 19:39:48 +00:00
craig.p.drummond
846c13c36c Mention that error comes from MPD 2013-11-15 19:38:25 +00:00
craig.p.drummond
62924f8142 Be consistent with isReadable check on dirs 2013-10-20 14:18:31 +00:00
craig.p.drummond
53ec86e574 Fix detection of shares when \\ip.address is used
BUG: 316
2013-10-18 18:56:49 +00:00
craig.p.drummond
c78e3aa20a Fix detecting if MPD dis is readable, if it is specified as \\host
BUG: 316
2013-10-17 17:22:54 +00:00
craig.p.drummond
c93ad16160 Cleanup 2013-10-08 18:00:42 +00:00
craig.p.drummond
1e781a9a37 Use "play" command if play button is pressed and there is no current song. 2013-09-24 18:41:35 +00:00
craig.p.drummond
b678d4b25c Initial MacOS port - thanks to Ian Scott 2013-09-17 15:54:18 +00:00
craig.p.drummond
a0ee974374 Add option to prevent system from suspending whilst playing (Linux only). 2013-09-02 18:25:54 +00:00
craig.p.drummond
0c99596bd5 HTTP stream URL is per collection 2013-08-23 16:34:03 +00:00
craig.p.drummond
72cd22161c Use i18n is a more KDE-like manner, other wise debug builds of kdelibs produce (I18N_ARGUMENT_MISSING)
BUG: 254
2013-07-18 14:52:45 +00:00
craig.p.drummond
ce72f561bd After replacing play queue - dont emit error if fail plays, might be that playlist was not loaded... 2013-07-03 19:05:22 +00:00