Skip to content

Commit

Permalink
Merge pull request #70 from sailfishos-applications/devel
Browse files Browse the repository at this point in the history
`devel`→`master`: Final commits for v0.3.3
  • Loading branch information
Olf0 authored Feb 26, 2024
2 parents eae9782 + 39046aa commit 6390a33
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 16 deletions.
Binary file added .xdata/icons/social-media/flowplayer_122x122.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .xdata/icons/social-media/flowplayer_216x108.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<br />

#### Features:
- *<ToDo: A pull request for [the README.md](https://github.com/sailfishos-applications/flowplayer/blob/devel/README.md) which provides a list of features will be much appreciated.>*
- *A pull request for [the README.md](https://github.com/sailfishos-applications/flowplayer/blob/devel/README.md) which provides a list of features will be much appreciated.*

<sup>Note that the ability to ... may be broken (this is [known for XXX](https://github.com/sailfishos-applications/flowplayer/issues/) ‒ currently nothing) due to API changes in recent SailfishOS releases.</sup><br />
<sup>Note that the functionality and / or ability to may be broken (this is [known for internet radio](https://github.com/sailfishos-applications/flowplayer/issues/62)) due to API changes in recent SailfishOS releases.</sup><br />
Pull requests with fixes, improvements and enhancements are welcome!

<br />
Expand Down Expand Up @@ -45,6 +45,7 @@ In 2023 [olf (Olf0)](https://github.com/Olf0) overhauled infrastructure aspects,
[Matias Perez (CepiPerez)](https://github.com/CepiPerez)
#### Contributors
- [Damien Caliste (dcaliste)](https://github.com/dcaliste)
- [David Llewellyn-Jones (llewelld / flypig)](https://github.com/llewelld)
- [olf (Olf0)](https://github.com/Olf0)
- [Tomasz Sterna (smokku)](https://github.com/smokku)
<br />
Expand Down
5 changes: 3 additions & 2 deletions qml/pages/AboutPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ Page {
color: Theme.secondaryColor
text: "(C) 2022-2024 olf (Olf0)" + "<br />" +
"(C) 2023, 2024 Damien Caliste (dcaliste)" + "<br />" +
"(C) 2024 Tomasz Sterna (smokku)"
"(C) 2024 Tomasz Sterna (smokku)" + "<br />" +
"(C) 2024 David Llewellyn-Jones (llewelld / flypig)"
font.pixelSize: Theme.fontSizeSmall
}

Expand All @@ -99,7 +100,7 @@ Page {

Label {
text: colored +
"<a href='https://github.com/sailfishos-applications/flowplayer/blob/master/translations/README.md#translations-l10n--i18n'>" +
"<a href='https://github.com/sailfishos-applications/flowplayer/tree/master/translations#readme'>" +
"<b>Translations README</b></a>"
onLinkActivated: Qt.openUrlExternally(link)
font.pixelSize: Theme.fontSizeLarge
Expand Down
15 changes: 8 additions & 7 deletions rpm/flowplayer.changes
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
* Sat Feb 10 2024 olf <[email protected]> - 0.3.3
* Mon Feb 26 2024 olf <[email protected]> - 0.3.3
- Slightly overhaul `AboutPage.qml` (#58, #59)
-
- Avoid creating QSettings too early (#65, #69) by @llewelld & @dcaliste, closes issue #64
- Let `TS`→`QM` file translation work on OBS (#68), fixes a common issue

* Thu Feb 08 2024 olf <[email protected]> - 0.3.2
- Use Sailfish.Pickers.FolderPickerPage to configure music directories (#33) by @smokku
- Enhance AboutPage.qml (#37, #44)
- Translation updates for DE & SV (#45, #46)
- Use `Sailfish.Pickers.FolderPickerPage` to configure music directories (#33) by @smokku
- Enhance `AboutPage.qml` (#37, #44)
- Translation updates for DE & SV (#45, #46) by @Olf0 & @eson57
- Try harder to get rid of hardcoded home paths (#48) by @dcaliste
- Change the organisation name (#51) by @dcaliste

* Sun Feb 04 2024 olf <[email protected]> - 0.3.1
- Add missing QML dependencies (#27, #28)
- Fix various ways of album cover download (#31) by @dcaliste (closes issue #30)
- Use version number from the RPM spec file (#32) by @dcaliste (closes issue #29)
- Fix various ways of album cover download (#31) by @dcaliste, closes issue #30
- Use version number from the RPM spec file (#32) by @dcaliste, closes issue #29
- Fix building at SFOS-OBS (#40), closes issue #39

* Tue Dec 05 2023 olf <[email protected]> - 0.3.0
Expand Down
5 changes: 3 additions & 2 deletions rpm/flowplayer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Version: 0.3.3
# build at GitHub and OBS, when configured accordingly; mind the sorting
# (`adud` < `alpha`). For details and reasons, see
# https://github.com/storeman-developers/harbour-storeman/wiki/Git-tag-format
Release: 1
Release: release1
# The Group tag should comprise one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Applications/Multimedia
Expand Down Expand Up @@ -51,6 +51,7 @@ BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(libresource)
BuildRequires: pkgconfig(taglib)
BuildRequires: qt5-qttools-linguist
BuildRequires: desktop-file-utils

# This description section includes metadata for SailfishOS:Chum, see
Expand All @@ -73,7 +74,7 @@ Categories:
- Player
- Qt
- Viewer
DeveloperName: Matias Perez (CepiPerez), olf (Olf0), Damien Caliste (dcaliste)
DeveloperName: CepiPerez, olf, dcaliste, smokku, flypig
Custom:
Repo: %{url}
PackageIcon: %{url}/raw/master/flowplayer.png
Expand Down
5 changes: 4 additions & 1 deletion src/playlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <QXmlStreamReader>
#include <QDir>

QSettings sets;
QList<int> randomlist;
int currentItem, currentRandom;

Expand All @@ -25,12 +24,14 @@ int Playlist::current()

QString Playlist::active() const
{
QSettings sets;
QString t = sets.value("Active", "false").toString();
return t;
}

QString Playlist::unknown() const
{
QSettings sets;
QString t = sets.value("Unknown", "false").toString();
return t;
}
Expand Down Expand Up @@ -415,6 +416,7 @@ void Playlist::changeUnknown(bool active)
{
//qDebug() << "CHANGING UKNOWN: " << active;

QSettings sets;
sets.setValue("Unknown", active);
sets.sync();
}
Expand All @@ -423,6 +425,7 @@ void Playlist::changeMode(QString mode)
{
//qDebug() << "CHANGING MODE: " << mode;

QSettings sets;
sets.setValue("Mode", mode);
sets.sync();
}
Expand Down
29 changes: 27 additions & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ QString albumArtUrl, albumArtArtist, albumArtAlbum;
QString currentArtist, currentSong;
QString searchServer;

QSettings settings;

//extern bool isDBOpened;

Utils::Utils(QQuickItem *parent)
Expand Down Expand Up @@ -442,136 +440,159 @@ void Utils::removePreview()

void Utils::setSettings(QString set, QString val)
{
QSettings settings;
settings.setValue(set, val);
settings.sync();
}

QString Utils::readSettings(QString set, QString val)
{
QSettings settings;
return settings.value(set, val).toString();
}

QString Utils::showReflection()
{
QSettings settings;
return settings.value("ShowReflection", "true").toString();
}

QString Utils::viewmode() const
{
QSettings settings;
return settings.value("ViewMode", "grid").toString();
}

QString Utils::paging() const
{
QSettings settings;
return settings.value("Paging", "multiple").toString();
}

QString Utils::scrobble() const
{
QSettings settings;
return settings.value("Scrobble", "false").toString();
}

QString Utils::order() const
{
QSettings settings;
return settings.value("SortOrder", "album").toString();
}

QString Utils::lang() const
{
QSettings settings;
return settings.value("LastFMlang", "en").toString();
}

QString Utils::updatestart() const
{
QSettings settings;
return settings.value("UpdateOnStartup", "no").toString();
}

QString Utils::autosearch() const
{
QSettings settings;
return settings.value("AutoSearchLyrics", "yes").toString();
}

QString Utils::cleanqueue() const
{
QSettings settings;
return settings.value("CleanQueue", "yes").toString();
}

QString Utils::workoffline() const
{
QSettings settings;
return settings.value("WorkOffline", "no").toString();
}


void Utils::setViewMode(QString val)
{
QSettings settings;
settings.setValue("ViewMode", val);
settings.sync();
emit viewmodeChanged();
}

void Utils::setPaging(QString val)
{
QSettings settings;
settings.setValue("Paging", val);
settings.sync();
emit pagingChanged();
}

void Utils::setScrobble(QString val)
{
QSettings settings;
settings.setValue("Scrobble", val);
settings.sync();
emit scrobbleChanged();
}

void Utils::setOrder(QString val)
{
QSettings settings;
settings.setValue("SortOrder", val);
settings.sync();
emit orderChanged();
}

void Utils::setLang(QString val)
{
QSettings settings;
settings.setValue("LastFMlang", val);
settings.sync();
emit langChanged();
}

void Utils::setUpdateStart(QString val)
{
QSettings settings;
settings.setValue("UpdateOnStartup", val);
settings.sync();
emit updateChanged();
}

void Utils::setAutoSearch(QString val)
{
QSettings settings;
settings.setValue("AutoSearchLyrics", val);
settings.sync();
emit autosearchChanged();
}

void Utils::setCleanQueue(QString val)
{
QSettings settings;
settings.setValue("CleanQueue", val);
settings.sync();
emit queueChanged();
}

void Utils::setWorkOffline(QString val)
{
QSettings settings;
settings.setValue("WorkOffline", val);
settings.sync();
emit workofflineChanged();
}

QString Utils::orientation() const
{
QSettings settings;
return settings.value("Orientation", "auto").toString();
}

void Utils::setOrientation(QString val)
{
QSettings settings;
settings.setValue("Orientation", val);
settings.sync();
emit orientationChanged();
Expand All @@ -586,6 +607,7 @@ QString Utils::plainLyrics(QString text)

QString Utils::version()
{
QSettings settings;
return settings.value("Firmware", "PR10").toString();
}

Expand Down Expand Up @@ -622,6 +644,7 @@ void Utils::removeAlbumArt()

void Utils::getFolders()
{
QSettings settings;
QStringList folders = settings.value("Folders","").toString().split("<separator>");
folders.removeAll("");

Expand Down Expand Up @@ -684,6 +707,7 @@ void Utils::getFolderItems(QString path)

void Utils::addFolderToList(QString path)
{
QSettings settings;
QStringList folders = settings.value("Folders","").toString().split("<separator>");
folders.removeAll("");
folders.append(path);
Expand All @@ -695,6 +719,7 @@ void Utils::addFolderToList(QString path)

void Utils::removeFolder(QString path)
{
QSettings settings;
QStringList folders = settings.value("Folders","").toString().split("<separator>");
folders.removeAll("");
folders.removeAll(path);
Expand Down

0 comments on commit 6390a33

Please sign in to comment.