Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

develmaster: Commits for v0.3.6 #109

Merged
merged 19 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
6daf62c
Translate translations/flowplayer.ts in sv (#90)
transifex-integration[bot] Apr 12, 2024
8ef6aad
Translate translations/flowplayer.ts in de (#91)
transifex-integration[bot] Apr 12, 2024
a5e2481
Translate translations/flowplayer.ts in et (#92)
transifex-integration[bot] Apr 12, 2024
044cc1b
[Tx: translations/flowplayer.ts] Add Finnish translation (fi) #94
transifex-integration[bot] Apr 24, 2024
54ab4ed
[Tx] Updates for file translations/flowplayer.ts in fi (#95)
transifex-integration[bot] Apr 27, 2024
00d809f
Translate translations/flowplayer.ts in fi (#96)
transifex-integration[bot] Apr 30, 2024
19a9ec1
[extras/Lockscreen.qml] Add reference to issue #102 (#103)
Olf0 Jun 16, 2024
0e7791a
[src/utils.cpp] Remove function `startMafw` …
Olf0 Jun 16, 2024
b2e0ee3
[src/utils.h] Remove function declaration `startMafw` …
Olf0 Jun 16, 2024
1365b36
[src/datareader.cpp] Omit superfluous `QString oFile` (#100)
Olf0 Jun 18, 2024
d1df795
Use the app config dir to save the QSettings file (#105)
dcaliste Jul 4, 2024
e0b2924
[flowplayer/extras/Lockscreen.qml] Denote status in comments (#108)
Olf0 Jul 4, 2024
d889a6d
Merge pull request #104 from sailfishos-applications/Olf0-patch-2
dcaliste Jul 5, 2024
814e496
[flowplayer/src/playlist.cpp] Convert unused `/home/nemo` references,…
Olf0 Jul 5, 2024
01e6e0d
[flowplayer.changes] Add changelog entries for v0.3.6
Olf0 Nov 28, 2024
e098ffb
[flowplayer.spec] Pre-release version increase
Olf0 Nov 28, 2024
43993ad
[README.md] Add Elmeri Länsiharju (tuplasuhveli) as contributor
Olf0 Nov 28, 2024
7cc6cb7
[flowplayer.changes] Beautify two atributions
Olf0 Nov 28, 2024
501fa77
[flowplayer.changes] Another round of name beautifying
Olf0 Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ In 2023 [olf (Olf0)](https://github.com/Olf0) overhauled infrastructure aspects,
#### Contributors
- [Damien Caliste (dcaliste)](https://github.com/dcaliste)
- [David Llewellyn-Jones (llewelld / flypig)](https://github.com/llewelld)
- [Elmeri Länsiharju (tuplasuhveli)](https://github.com/tuplasuhveli)
- [Mark Washeim (poetaster)](https://github.com/poetaster)
- [olf (Olf0)](https://github.com/Olf0)
- [Ruben de Smet (rubdos)](https://github.com/rubdos)
Expand Down
5 changes: 5 additions & 0 deletions extras/Lockscreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
**
****************************************************************************/

/***********************************************
** This file bears some issues, see issue #102.
***********************************************/

import QtQuick 2.0
import org.nemomobile.lipstick 0.1
import Sailfish.Silica 1.0
Expand Down Expand Up @@ -432,6 +436,7 @@ MouseArea {
onTextChanged: {
setDefaultMarqueeOffset()
if (text!=="") {
// Do not worry about this hardcoded path, see issues #101 and #102.
coverArt.source = "/home/nemo/.cache/currentAlbumArt.jpeg";
coverArt.sourceSize.width = 0
coverArt.sourceSize.height = 0
Expand Down
11 changes: 9 additions & 2 deletions rpm/flowplayer.changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
* Thu Nov 28 2024 olf <[email protected]> - 0.3.6
- Update translations: SV (#90 by @eson57), DE (#91), ET (#92)
- Add Finnish (FI) translation (#94, #95, #96) by @tuplasuhveli
- Clean up multiple code sections (#100, #104, #107)
- Document status of `extras/Lockscreen.qml` (#102, #103, #108)
- Use the app config dir to save the QSettings file (#105 by @dcaliste), closes issue #99

* Fri Apr 12 2024 olf <[email protected]> - 0.3.5
- Add SailJail configuration (#77), originally by @poetaster
- Add Estonian translation (#86) by @tuplasuhveli
- Fix some source strings (#87, #88) by @tuplasuhveli
- Add Estonian translation (#86) by Priit Jõerüüt (tlend@transifex)
- Fix some source strings (#87, #88) by @tuplasuhveli & @olf

* Thu Mar 14 2024 olf <[email protected]> - 0.3.4
- Support Opus codec (#67) by @rubdos
Expand Down
4 changes: 2 additions & 2 deletions rpm/flowplayer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name: flowplayer
Summary: Music Player for SailfishOS
# The <version> tag must adhere to semantic versioning: Among multiple other
# reasons due to its use for `qmake5` in line 104. See https://semver.org/
Version: 0.3.5
Version: 0.3.6
# The <release> tag comprises one of {alpha,beta,rc,release} postfixed with a
# natural number greater or equal to 1 (e.g., "beta3") and may additionally be
# postfixed with a plus character ("+"), the name of the packager and a release
Expand All @@ -21,7 +21,7 @@ Version: 0.3.5
# 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: release3
Release: release4
# 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
4 changes: 3 additions & 1 deletion src/FlowPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <sailfishapp.h>
#include <QObject>
#include <QTextCodec>
#include <QSettings>
#include <QStandardPaths>

#include "playlistmanager.h"
#include "utils.h"
Expand Down Expand Up @@ -34,7 +36,7 @@ int main(int argc, char *argv[])
QString lang;
QTranslator translator;

QSettings settings;
QSettings settings(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
lang = settings.value("Language", "undefined").toString();

if (lang=="undefined")
Expand Down
3 changes: 2 additions & 1 deletion src/coversearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <QStringList>
#include <QJsonDocument>
#include <QJsonObject>
#include <QSettings>
#include <QStandardPaths>

#define BING_ID "A16EECFD14108C2794E4BC29D4DE59C308685B4A"
Expand Down Expand Up @@ -165,7 +166,7 @@ void CoverSearch::remove(const QString &file)
QString nf = file;
if ( nf.startsWith("//") )
nf.remove(0, 1);
QSettings settings;
QSettings settings(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QStringList entries = settings.value("CoverSearch","").toStringList();
QStringList newfiles;
for (int i=0; i< entries.count(); ++i)
Expand Down
6 changes: 1 addition & 5 deletions src/datareader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ TagLib::File* DataReader::getFileByMimeType(QString file)

void DataReader::readFile(QString file)
{
// Is oFile used somewhere? (I failed to find a location.)
// If not, what is this new line good for? For details, see PR #75.
QString oFile = file;

file.remove("file://");
TagLib::File* tf = getFileByMimeType(file);

Expand Down Expand Up @@ -271,7 +267,7 @@ void DataReader::run()
favFiles.clear();
map.clear();

QSettings settings;
QSettings settings(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QStringList folders = settings.value("Folders","").toString().split("<separator>");
folders.removeAll("");

Expand Down
6 changes: 3 additions & 3 deletions src/datos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void Datos::addFilterToQueue()
}*/

QString norder;
QSettings settings;
QSettings settings(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QString order = settings.value("TrackOrder", "title").toString();

if (order=="title") norder="title";
Expand Down Expand Up @@ -429,7 +429,7 @@ QString Datos::getArtistsCovers()
dato1.append(coverart);
}

QSettings settings;
QSettings settings(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
int first = settings.value("LastArtistItem", 0).toInt();

if (first >= dato1.count()) {
Expand Down Expand Up @@ -463,7 +463,7 @@ QString Datos::getAlbumsCovers()
dato1.append(coverart);
}

QSettings settings;
QSettings settings(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
int first = settings.value("LastAlbumItem", 0).toInt();

if (first >= dato1.count()) {
Expand Down
8 changes: 4 additions & 4 deletions src/lfm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LFM::LFM(QQuickItem *parent)
//connect(datos5, SIGNAL(finished(QNetworkReply*)), this, SLOT(downloaded5(QNetworkReply*)));
//connect(datos6, SIGNAL(finished(QNetworkReply*)), this, SLOT(downloaded6(QNetworkReply*)));

QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
lang = sets.value("LastFMlang", "en").toString();
}

Expand Down Expand Up @@ -277,7 +277,7 @@ void LFM::getBio(QString artist)

//if ( reply1 && reply1->isRunning() )
// reply1->abort();
QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
lang = sets.value("Language", "en").toString();
artistInfo = tr("Fetching artist information");
artistInfoLarge = "";
Expand All @@ -301,7 +301,7 @@ void LFM::getAlbumBio(QString artist, QString album)
{
/*if ( reply2 && reply2->isRunning() )
reply2->abort();
QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
lang = sets.value("LastFMlang", "en").toString();
albumInfo = tr("Fetching album information");
albumInfoLarge = "";
Expand All @@ -316,7 +316,7 @@ void LFM::getSongBio(QString artist, QString song)
{
/*if ( reply3 && reply3->isRunning() )
reply3->abort();
QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
lang = sets.value("LastFMlang", "en").toString();
songInfo = tr("Fetching track information");
songInfoLarge = "";
Expand Down
1 change: 0 additions & 1 deletion src/loadimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <qfileinfo.h>
#include <qdir.h>
#include <QImage>
#include <QSettings>
#include <QDebug>
#include <QStandardPaths>

Expand Down
1 change: 0 additions & 1 deletion src/loadwebimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <qfileinfo.h>
#include <qdir.h>
#include <QImage>
#include <QSettings>
#include <QDebug>
#include <QDateTime>
#include <QStandardPaths>
Expand Down
1 change: 0 additions & 1 deletion src/missing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <QImage>
#include <QStringList>
#include <QXmlStreamReader>
#include <QSettings>
#include <QStandardPaths>

bool namefileLess(const QStringList &d1, const QStringList &d2)
Expand Down
2 changes: 1 addition & 1 deletion src/musicmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void MusicModel::loadData(QString artist, QString album, QString various)

if (!isDBOpened) openDatabase();

QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QString torder = sets.value("TrackOrder", "title").toString();
QString order;
if (torder=="title") order="title";
Expand Down
7 changes: 4 additions & 3 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <QTimer>
#include <QSettings>
#include <QStandardPaths>
#include "QVariantMap"

extern bool databaseWorking;
Expand All @@ -20,7 +21,7 @@ static gboolean bus_cb (GstBus *bus, GstMessage *msg, gpointer data)
static void prepare_next_stream(GstElement *obj, gpointer data) {
qDebug() << "ABOUT TO FINISH";

QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
if (sets.value("GaplessPlayback", "no").toString()=="no")
return;

Expand Down Expand Up @@ -421,7 +422,7 @@ void Player::backend_deinit()
void Player::setEq(bool enabled)
{
qDebug() << "Setting eq: " << enabled;
QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
sets.setValue("Equalizer", enabled? "Yes" : "No");
sets.sync();

Expand Down Expand Up @@ -472,7 +473,7 @@ void Player::setEqualizerReal(int band, int value)

void Player::loadEqualizer()
{
QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
m_eqenabled = sets.value("Equalizer", "No").toString()=="Yes";
emit eqEnabledChanged();

Expand Down
14 changes: 7 additions & 7 deletions src/playlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ int Playlist::current()

QString Playlist::active() const
{
QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QString t = sets.value("Active", "false").toString();
return t;
}

QString Playlist::unknown() const
{
QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QString t = sets.value("Unknown", "false").toString();
return t;
}
Expand Down Expand Up @@ -258,10 +258,10 @@ void Playlist::addAlbumToList(QString artist, QString album, QString various)

void Playlist::saveList(QString list)
{
//qDebug() << "Saving playlist :" << list;
//qDebug() << "Saving playlist: " << list;

/*QString archivo;
archivo = "/home/nemo/.config/cepiperez/playlists/" + list + ".xml";
archivo = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/playlists/" + list + ".xml";
QFile file( archivo );
file.open( QIODevice::Truncate | QIODevice::Text | QIODevice::ReadWrite);
QTextStream out(&file);
Expand Down Expand Up @@ -352,7 +352,7 @@ void Playlist::clearList(QString list)
listado.clear();
//saveList(list);
/*QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
QString path("/home/nemo/.config/cepiperez/flowplayer.db");
QString path(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.db");
db.setDatabaseName(path);
db.open();
Expand Down Expand Up @@ -416,7 +416,7 @@ void Playlist::changeUnknown(bool active)
{
//qDebug() << "CHANGING UKNOWN: " << active;

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

QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
sets.setValue("Mode", mode);
sets.sync();
}
Expand Down
5 changes: 3 additions & 2 deletions src/playlistmanager.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "playlistmanager.h"

#include <QSettings>
#include <QStandardPaths>
#include <QFileInfo>
#include <QXmlStreamReader>
#include <QDir>
Expand Down Expand Up @@ -89,7 +90,7 @@ void PlaylistManager::addAlbumToList(QString list, QString artist, QString album

if (!isDBOpened) openDatabase();

QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QString torder = sets.value("TrackOrder", "title").toString();
QString order;
if (torder=="title") order="title";
Expand Down Expand Up @@ -431,7 +432,7 @@ void PlaylistManager::loadAlbum(QString artist, QString album, QString various)

if (!isDBOpened) openDatabase();

QSettings sets;
QSettings sets(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.conf", QSettings::NativeFormat);
QString torder = sets.value("TrackOrder", "title").toString();
QString order;
if (torder=="title") order="title";
Expand Down
Loading