1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

expect urls of form tomahawk://load/?xspf=

This commit is contained in:
Leo Franchi 2011-03-23 07:46:12 -04:00
parent 0691ad6252
commit 068391cd58

View File

@ -505,8 +505,8 @@ TomahawkApp::loadUrl( const QString& url )
if( url.contains( "tomahawk://" ) ) {
QString cmd = url.mid( 11 );
qDebug() << "tomahawk!s" << cmd;
if( cmd.startsWith( "load/" ) ) {
cmd = cmd.mid( 5 );
if( cmd.startsWith( "load/?" ) ) {
cmd = cmd.mid( 6 );
qDebug() << "loading.." << cmd;
if( cmd.startsWith( "xspf=" ) ) {
XSPFLoader* l = new XSPFLoader( true, this );