mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Fix TWK-1589
This commit is contained in:
@@ -101,7 +101,7 @@ SpotifyParser::lookupUrl( const QString& rawLink )
|
|||||||
|
|
||||||
// TODO: Ignoring search and user querys atm
|
// TODO: Ignoring search and user querys atm
|
||||||
// (spotify:(?:(?:artist|album|track|user:[^:]+:playlist):[a-zA-Z0-9]+|user:[^:]+|search:(?:[-\w$\.+!*'(),<>:\s]+|%[a-fA-F0-9\s]{2})+))
|
// (spotify:(?:(?:artist|album|track|user:[^:]+:playlist):[a-zA-Z0-9]+|user:[^:]+|search:(?:[-\w$\.+!*'(),<>:\s]+|%[a-fA-F0-9\s]{2})+))
|
||||||
QRegExp rx( "(spotify:(?:(?:artist|album|track|user:[^:]+:playlist):[a-zA-Z0-9]+[^:]))" );
|
QRegExp rx( "(spotify:(?:(?:artist|album|track|user:[^:]+:playlist):[a-zA-Z0-9]+[^:\?]))" );
|
||||||
if ( rx.indexIn( link, 0 ) != -1 )
|
if ( rx.indexIn( link, 0 ) != -1 )
|
||||||
{
|
{
|
||||||
link = rx.cap( 1 );
|
link = rx.cap( 1 );
|
||||||
|
Reference in New Issue
Block a user