Commit Graph

175 Commits

Author SHA1 Message Date
craig.p.drummond
7bcb40d159 Use Q_GLOBAL_STATIC for Qt only builds 2014-03-17 19:52:47 +00:00
craig.p.drummond
c80751e82a Fix port number format in KDE builds 2014-03-14 19:09:20 +00:00
craig.p.drummond
5af3fdcfab Fix updating-db message/spinner 2014-03-14 19:08:10 +00:00
craig.p.drummond
2301fc969e Speed-up MPD response parsing, by only converting strings to UTF-8 when required 2014-03-07 17:20:07 +00:00
craig.p.drummond
1103b8ee09 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
36f462c436 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
3f1bcf5f74 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
de9109c49a Need to quote boolean (1/0) params for mopidy.
BUG: 407
2014-02-04 19:11:05 +00:00
craig.p.drummond
121f0f0299 Only want local files from Mopidy for library and folders 2014-02-04 19:10:18 +00:00
craig.p.drummond
5f64cf2803 Simplify MPD update 2014-01-31 19:51:29 +00:00
craig.p.drummond
b51476ccc4 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
3443b9df56 Check if server is mopdiy, when handling "incorrect arguments" error code 2014-01-22 19:28:31 +00:00
craig.p.drummond
6ad6e4d6d6 dbPlaytime will also be 0 if this is a mopidy server 2014-01-22 19:27:55 +00:00
craig.p.drummond
5038bd4fb0 Try to detect if we are connected to Mopidy, and act accordingly 2014-01-22 19:23:26 +00:00
craig.p.drummond
e10e4ecc8a 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
395558352b Mopidy seems to require integer arguments to be quoted! 2014-01-21 20:04:45 +00:00
craig.p.drummond
6daf18d942 Decode Mopidy local:track:file paths 2014-01-21 18:57:47 +00:00
craig.p.drummond
060ae12e1c Dont need to pass "/" to first lsinfo call 2014-01-21 18:57:13 +00:00
craig.p.drummond
7c11c3c996 Cache folder listing too 2014-01-10 20:00:10 +00:00
craig.p.drummond
d91f8807d2 Results of cppcheck... 2014-01-08 19:49:48 +00:00
craig.p.drummond
cf2e5fbe76 If listallinfo fails, usr lsinfo recursively
BUG: 379
2014-01-08 19:43:05 +00:00
craig.p.drummond
addfca835a Update (c) year 2014-01-06 19:32:05 +00:00
craig.p.drummond
d79129fd37 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
261ebc9b03 Fix error message reporting 2014-01-03 19:00:33 +00:00
craig.p.drummond
f9b847d040 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
befb18a37c Increase max-per-add to 10000 2013-12-30 12:14:49 +00:00
craig.p.drummond
bc67f706f9 Allow 'add' chunk size to be configured via config file. 2013-12-30 09:59:50 +00:00
craig.p.drummond
51f80c137f Also shorten command list when logging that it failed! 2013-12-30 09:49:16 +00:00
craig.p.drummond
ad7a75747c 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
a561b78c65 Add more debug to sendCommand 2013-12-29 18:23:14 +00:00
craig.p.drummond
360557b442 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
c2ee5a0599 Improve error message if 'playlist_directory' does not exist.
BUG: 358
2013-12-26 20:54:30 +00:00
craig.p.drummond
3aa3f7c40c Register QSet<qint32> meta-type 2013-12-25 21:33:17 +00:00
craig.p.drummond
5581b560b5 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
75f5b62ac4 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
7263262909 Preserve priorities when undo/redo 2013-12-19 20:08:24 +00:00
craig.p.drummond
3eef603688 Add 'Search' tab - uses MPD for search. 2013-12-18 19:15:19 +00:00
craig.p.drummond
16cab8a738 Basic undo/redo support for playqueue. 2013-12-17 21:12:27 +00:00
craig.p.drummond
61435e0297 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
f91db0e4da More consistent .cue file detection - move code into Song class 2013-12-08 15:56:01 +00:00
craig.p.drummond
56e8b209a1 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
bb20217719 When shuffling albums, only start to play if was playing before shuffle 2013-11-27 19:40:18 +00:00
craig.p.drummond
608d6c0bce readReply() should be static 2013-11-27 19:39:48 +00:00
craig.p.drummond
dd7185cd6e Mention that error comes from MPD 2013-11-15 19:38:25 +00:00
craig.p.drummond
3876d0c122 Be consistent with isReadable check on dirs 2013-10-20 14:18:31 +00:00
craig.p.drummond
ff6237403c Fix detection of shares when \\ip.address is used
BUG: 316
2013-10-18 18:56:49 +00:00
craig.p.drummond
fe91b4faa4 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
7579b673c0 Cleanup 2013-10-08 18:00:42 +00:00
craig.p.drummond
bda9120b74 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
9d80f402e7 Initial MacOS port - thanks to Ian Scott 2013-09-17 15:54:18 +00:00