mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Don't set a "file" url scheme on files in devices that already have URL prefixes (like afc:// for iPod Touches)
Fixes issue 2564
This commit is contained in:
parent
bfd725f2ed
commit
4cbc221f00
@ -849,7 +849,12 @@ void Song::InitFromLastFM(const lastfm::Track& track) {
|
||||
QString filename = QString::fromLocal8Bit(track->ipod_path);
|
||||
filename.replace(':', '/');
|
||||
|
||||
d->url_ = QUrl::fromLocalFile(prefix + filename);
|
||||
if (prefix.contains("://")) {
|
||||
d->url_ = prefix + filename;
|
||||
} else {
|
||||
d->url_ = QUrl::fromLocalFile(prefix + filename);
|
||||
}
|
||||
|
||||
d->basefilename_ = QFileInfo(filename).fileName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user