mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-08 10:02:29 +02:00
Get proper filepath for files in m3u's
This commit is contained in:
parent
d2e442a571
commit
625c04825c
@ -115,6 +115,7 @@ M3uLoader::parseM3u( const QString& fileLink )
|
||||
QByteArray line = file.readLine();
|
||||
/// If anyone wants to take on the regex for parsing EXT, go ahead
|
||||
/// But the notion that users does not tag by a common rule. that seems hard
|
||||
/// So ignore that for now
|
||||
if ( line.contains( "EXT" ) )
|
||||
continue;
|
||||
|
||||
@ -124,7 +125,8 @@ M3uLoader::parseM3u( const QString& fileLink )
|
||||
getTags( tmpFile );
|
||||
else
|
||||
{
|
||||
QFileInfo tmpFile( QUrl::fromUserInput( QString( fileInfo.canonicalPath() + "/" + line.simplified() ) ).toLocalFile() );
|
||||
QUrl fileUrl = QUrl::fromUserInput( QString( QFileInfo(file).canonicalPath() + "/" + line.simplified() ) );
|
||||
QFileInfo tmpFile( fileUrl.toLocalFile() );
|
||||
if ( tmpFile.exists() )
|
||||
getTags( tmpFile );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user