1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

Be more lenient about accepting jspf and m3u

This commit is contained in:
Leo Franchi
2015-01-21 19:45:29 -08:00
parent 67819e60c8
commit 7c4ac08749

View File

@@ -1205,12 +1205,12 @@ TomahawkWindow::importPlaylist( const QString& url, bool autoUpdate )
const QUrl u = QUrl::fromUserInput( url );
const QString ext = u.toString().toLower();
if ( ext.endsWith( ".m3u" ) )
if ( ext.endsWith( "m3u" ) )
{
M3uLoader* loader = new M3uLoader( u.toString(), true );
loader->parse();
}
else if ( ext.endsWith( ".jspf" ) )
else if ( ext.endsWith( "jspf" ) )
{
JSPFLoader* loader = new JSPFLoader( true );
connect( loader, SIGNAL( failed() ), SLOT( onJSPFError() ) );