mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Get proper filepath for files in m3u's
This commit is contained in:
@@ -115,6 +115,7 @@ M3uLoader::parseM3u( const QString& fileLink )
|
|||||||
QByteArray line = file.readLine();
|
QByteArray line = file.readLine();
|
||||||
/// If anyone wants to take on the regex for parsing EXT, go ahead
|
/// 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
|
/// But the notion that users does not tag by a common rule. that seems hard
|
||||||
|
/// So ignore that for now
|
||||||
if ( line.contains( "EXT" ) )
|
if ( line.contains( "EXT" ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -124,7 +125,8 @@ M3uLoader::parseM3u( const QString& fileLink )
|
|||||||
getTags( tmpFile );
|
getTags( tmpFile );
|
||||||
else
|
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() )
|
if ( tmpFile.exists() )
|
||||||
getTags( tmpFile );
|
getTags( tmpFile );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user