Skip to content

Commit

Permalink
Playlist Parser: Clean the path instead of converting it to a canonic…
Browse files Browse the repository at this point in the history
…al path when loading a playlist. This allows a degree of compatibility with library paths that contain symlinks.
  • Loading branch information
smithjd15 committed Jan 16, 2022
1 parent 7b73a69 commit 89953e1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/playlistparsers/parserbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ void ParserBase::LoadSong(const QString& filename_or_url, qint64 beginning,

// Make the path absolute
if (!QDir::isAbsolutePath(filename)) {
filename = dir.absoluteFilePath(filename);
}

// Use the canonical path
if (QFile::exists(filename)) {
filename = QFileInfo(filename).canonicalFilePath();
filename = QDir::cleanPath(dir.absoluteFilePath(filename));
}

const QUrl url = QUrl::fromLocalFile(filename);
Expand Down

0 comments on commit 89953e1

Please sign in to comment.