mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Be more lenient about accepting jspf and m3u
This commit is contained in:
@@ -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() ) );
|
||||
|
Reference in New Issue
Block a user