mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
Decode percent-encoded Tomahawk links.
This commit is contained in:
@@ -165,8 +165,9 @@ GlobalActionManager::copyToClipboard( const Tomahawk::query_ptr& query ) const
|
||||
bool
|
||||
GlobalActionManager::parseTomahawkLink( const QString& url )
|
||||
{
|
||||
if( url.contains( "tomahawk://" ) ) {
|
||||
QString cmd = url.mid( 11 );
|
||||
QString decodedUrl = QString::fromUtf8( QByteArray::fromPercentEncoding( url.toAscii() ).data() );
|
||||
if( decodedUrl.contains( "tomahawk://" ) ) {
|
||||
QString cmd = decodedUrl.mid( 11 );
|
||||
qDebug() << "Parsing tomahawk link command" << cmd;
|
||||
|
||||
QString cmdType = cmd.split( "/" ).first();
|
||||
|
Reference in New Issue
Block a user