mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 20:57:52 +02:00
expect urls of form tomahawk://load/?xspf=
This commit is contained in:
@@ -505,8 +505,8 @@ TomahawkApp::loadUrl( const QString& url )
|
|||||||
if( url.contains( "tomahawk://" ) ) {
|
if( url.contains( "tomahawk://" ) ) {
|
||||||
QString cmd = url.mid( 11 );
|
QString cmd = url.mid( 11 );
|
||||||
qDebug() << "tomahawk!s" << cmd;
|
qDebug() << "tomahawk!s" << cmd;
|
||||||
if( cmd.startsWith( "load/" ) ) {
|
if( cmd.startsWith( "load/?" ) ) {
|
||||||
cmd = cmd.mid( 5 );
|
cmd = cmd.mid( 6 );
|
||||||
qDebug() << "loading.." << cmd;
|
qDebug() << "loading.." << cmd;
|
||||||
if( cmd.startsWith( "xspf=" ) ) {
|
if( cmd.startsWith( "xspf=" ) ) {
|
||||||
XSPFLoader* l = new XSPFLoader( true, this );
|
XSPFLoader* l = new XSPFLoader( true, this );
|
||||||
|
Reference in New Issue
Block a user