Commit Graph

2483 Commits

Author SHA1 Message Date
Craig Drummond
82a6798c83 - Better handling of CUE tracks when MPD is set to list as directory.
- Disable CUE parsing in cantata by default, as MPD handles this better now.

Issues #1650 and #1652
2020-11-17 12:06:04 +00:00
Craig Drummond
4d9bb761e6 Remove dirble from radio section, as its no longer active. 2020-11-08 10:46:17 +00:00
Julian Weissgerber
36ee751b77 Change default CDDB server from dead FreeDB to GnuDB 2020-06-29 21:55:41 +02:00
Thomas Uhle
afc0b2fcc1 Replace Utils::random() by QRandomGenerator::global()
qrand() and qsrand() which are used by Utils::random() and Utils::initRand()
respectively are deprecated. Utils::random() and Utils::initRand() are no
longer necessary because QRandomGenerator supports everything what is
needed.
2020-06-12 16:10:56 +02:00
Thomas Uhle
b797e225d4 Fix MainWindow::moveSelectionAfterCurrentSong()
Ignore current song in selection when moving selected songs within the play
queue to play them next.
2020-06-10 12:44:33 +02:00
Thomas Uhle
0df2710b9e Fix enabling of play queue navigation actions 'next' and 'previous'
To enable or disable 'next' action, just rely on MPD's status value
'nextSongId'. Enable 'previous' action when there is more than one item in
the play queue or one item for which its duration is known and this is more
than 5 seconds. That is to also support the feature to go to the start of a
track if already played 5 seconds of it at least (which was introduced in
version 2.4.0). Corresponding implementation of Mpris and ThumbnailToolBar
updated accordingly.
2020-05-30 17:00:12 +02:00
Craig Drummond
8a7910ca6c Set default lyrics providers to azlyrics.com, chartlyrics.com, and lyrics.wikia.com
Issue #1604
2020-05-23 07:51:38 +01:00
Thomas Uhle
020ef1f956 Trigger MPRIS status update when connection to MPD lost
- Also propagate status update to MPRIS interface similar to what has been
  done in commit 5dd0942066.
  The probably simplest solution is to call Mpris::updateStatus() always
  when MainWindow::updateStatus() is called.
- Check for valid song ID in Mpris::CanPause() to return false if
  connection to MPD has been lost.
2020-05-15 15:45:23 +02:00
Thomas Uhle
4263744926 Avoid unknown song durations and duplicate updates of MPRIS' song details
- Move call to Mpris::updateCurrentSong() downwards to pick up the potential
  update of current song's duration from MPD's total time value (introduced
  by commit 1a38e468b7) and to avoid duplicate
  notifications (cf. commit bba9cfd880).
- Update MPRIS status value CanSeek when MPD's total time changes.
- Set MPDStatusValues::timeElapsed and MPDStatusValues::timeTotal to 0
  instead of -1 by default because the latter yields 65535 as these
  variables are 16 bit unsigned integer.
2020-05-15 12:44:55 +02:00
Craig Drummond
da402044af Hide BB10 styles (look bad), and gtk2 style (doesn't start) from list of styles in interface settings.
Closes #1598
2020-05-03 08:15:49 +01:00
Craig Drummond
a98170949f Merge branch 'master' of github.com:CDrummond/cantata 2020-05-02 16:44:21 +01:00
Craig Drummond
03519b1faa Don't use last.fm for artist image searches, its broken.
Closes #1597
2020-05-02 16:43:52 +01:00
Thomas Uhle
4a26cd7013 Update coverFileName in accordance with CurrentCover::stdImage()
Also update setting coverFileName appropriately which has been forgotten
in pull request #1590.
2020-04-22 00:02:57 +02:00
Thomas Uhle
a2d533940f Align Covers::defaultPix() with CurrentCover::stdImage()
The default icons shown as fallback in the play queue and the tray item
should be the same as well if no cover has been found.
2020-04-20 20:55:10 +02:00
Thomas Uhle
563e91c6df Fix search order in CurrentCover::findIcon()
Prefer the same icon theme rather than storage location, i.e., iterate
over all storage locations before to switch to the next icon theme.
2020-04-20 20:00:18 +02:00
Craig Drummond
72729bb424 - Correctly handle changing 'Basic' mode music folder.
- When stopping 'Basic' mode MPD instance, send SIGKILL.
Closes #1575
2020-02-29 08:26:57 +00:00
Craig Drummond
3f675c4d3b Re-enalble view background for all releases - issue is with Qt 2020-02-16 13:11:49 +00:00
Craig Drummond
b8645d1358 Fix most, but not all, deprecation warnings. 2020-02-16 09:51:37 +00:00
Craig Drummond
d7b3965b9b Update (c) year 2020-01-01 11:51:13 +00:00
Craig Drummond
8b734082f4 Custom playqueue background is not workig with Qt 5.12 onwards, so
disabled for now.

Issue #1554
2019-12-03 17:55:51 +00:00
Craig Drummond
cb9efe205f Update (c) year 2019-09-15 15:56:58 +01:00
Craig Drummond
599ea8e542 Add a checkbox controlling whether Cantata should apply its replaygain
setting each time it connects to MPD.

Issue #1531
2019-09-01 09:26:32 +01:00
Pavel Shlyak
560164f863 Fix html markup 2019-08-18 19:01:32 +03:00
Craig Drummond
fd095a63ae Show smart-playlists errors in messagewidget 2019-08-17 17:18:45 +01:00
Craig Drummond
56ab828844 Use screen.width*screen.height*5 as caover cache maxCost
Closes #1498
2019-06-06 20:32:56 +01:00
Craig Drummond
d75e8ed283 se screen size to calculate max cover cache cost
Issue #1498
2019-06-06 06:19:43 +01:00
Craig Drummond
a58d837f8f Use FanArt.tv for artist images
Closes #1485
2019-05-19 10:06:54 +01:00
Craig Drummond
44b8952dce When adding tracks via commandline, only play if queue is currently empty, otherwise just append new tracks.
Closes #1484
2019-05-06 10:40:12 +01:00
Craig Drummond
0f6c4d1b10 Due to Last.fm changes, artist images are no longer supported. See ARTIST_IMAGE_SUPPORT sections for removed code.
Issue #1485
2019-05-06 10:14:45 +01:00
Craig Drummond
1333da73c6 Load Various Artist image, if found.
Closes #1478
2019-04-27 09:00:27 +01:00
Craig Drummond
51ae1ca4f0 Merge branch 'master' of ssh://github.com/CDrummond/cantata 2019-04-26 18:34:00 +01:00
Craig Drummond
9c5fcf0cbd Fix image requests when using composers.
Closes #1477
2019-04-26 18:33:29 +01:00
Kai Uwe Broulik
781f724ead Set low urgency for track change notification 2019-04-17 12:44:13 +02:00
Kai Uwe Broulik
10016d7bd5 Set correct desktop file name and application display name
According to Qt docs, desktopFileName is the *base* name, i.e. without ".desktop" suffix
2019-04-17 12:31:54 +02:00
Craig Drummond
2be74efbde Add --fullscreen command-line option to start fullscreen.
Closes #1450
2019-02-21 17:50:01 +00:00
Craig Drummond
3e839b1d32 Re-add option to save lyrics in music folder.
Closes #1454
2019-02-21 17:42:33 +00:00
Craig Drummond
d7b379b75b Fix crash when double-clicking outside of table-view (when this is set to not stretch columns).
Closes #1445
2019-01-31 21:38:00 +00:00
Craig Drummond
d1ffba1dc9 When checking for http:/ also check for https:/
Issue #1444
2019-01-30 17:52:59 +00:00
Craig Drummond
09df75d3bd Fix saving, and reading back, https:// as MPD music folder.
Closes #1444
2019-01-30 17:47:42 +00:00
Craig Drummond
364807b266 Fix saving, and loading, of custom API keys.
Closes #1438
2019-01-09 22:17:06 +00:00
Pavel Shlyak
ad2229a7b8 Update coverdialog.cpp
This seems to be safier
2019-01-05 17:27:32 +04:00
Craig Drummond
af6a825ad3 Merge branch 'master' into 2.4 2018-12-30 10:48:34 +00:00
Craig Drummond
f8a81fc7f8 When loading URLs via commandline use AppendAndPlay.
Closes #1413
2018-12-03 22:53:37 +00:00
Craig Drummond
a21827b102 Fix MPD cover art retreival 2018-11-12 19:38:53 +00:00
Craig Drummond
06cf4c4e3d For MPD>=21, use its albumart protocol to fetch covers. 2018-11-10 18:37:37 +00:00
Craig Drummond
1c378a93cf Add more actions to search page results.
Closes #1398
2018-10-28 16:24:09 +00:00
Craig Drummond
c96b158daf Extend note about cover filename to state this should be without
extension.
2018-10-20 23:38:30 +01:00
Craig Drummond
7d4f863e6f Add more verbose covers debug
Issue #1395
2018-10-20 14:08:11 +01:00
Craig Drummond
7b28248aba Add another qt5ct palette work-around.
Issue #1381
2018-10-02 16:47:21 +01:00
Craig Drummond
b8604ab044 Change toolbar colours if palette changes.
Issue #1381
2018-10-01 19:45:18 +01:00