Skip to content

Commit

Permalink
WIP debuggin playlists in Flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Feb 22, 2024
1 parent 7c6324e commit ff2889e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/library/parser.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "library/parser.h"

#include <QDir>
#include <QFileDialog>
#include <QUrl>
#include <QtDebug>

Expand Down Expand Up @@ -38,6 +39,12 @@ QList<QString> Parser::parse(const QString& playlistFile) {

QFileInfo fileInfo(playlistFile);

QString dir = QFileDialog::getExistingDirectory(nullptr,

Check failure on line 42 in src/library/parser.cpp

View workflow job for this annotation

GitHub Actions / clazy

unused QString [-Wclazy-unused-non-trivial-variable]
"Open Directory",
fileInfo.canonicalPath(),
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
qDebug() << "Parser::parse fileinfo path" << fileInfo.canonicalPath();

QList<QString> existingLocations;
for (const auto& location : allLocations) {
mixxx::FileInfo trackFile = Parser::playlistEntryToFileInfo(
Expand Down
2 changes: 2 additions & 0 deletions src/library/parserm3u.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ QList<QString> ParserM3u::parseAllLocations(const QString& playlistFile) {
return paths;
}

qDebug() << "Reading playlist file" << QFileInfo(file).absoluteFilePath();

QByteArray byteArray = file.readAll();
QString fileContents;
if (Parser::isUtf8(byteArray.constData())) {
Expand Down

0 comments on commit ff2889e

Please sign in to comment.