1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

Fix TWK-1589

This commit is contained in:
Uwe L. Korn 2014-06-18 12:32:29 +01:00
parent c46c82de97
commit 47c14ce6a1

View File

@ -101,7 +101,7 @@ SpotifyParser::lookupUrl( const QString& rawLink )
// 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})+))
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 )
{
link = rx.cap( 1 );