1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 01:24:11 +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 c5d9de7682
commit 89b82c8d75

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() ) );