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:
parent
0691ad6252
commit
068391cd58
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user