mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Allow parsing of grooveshark tinysong.com links
This commit is contained in:
@@ -93,7 +93,9 @@ GroovesharkParser::lookupGroovesharkPlaylist( const QString& linkRaw )
|
||||
|
||||
QStringList urlParts = linkRaw.split( "/" );
|
||||
bool ok;
|
||||
int playlistID = urlParts.last().toInt( &ok, 10 );
|
||||
QString playlistStr = urlParts.last();
|
||||
playlistStr.truncate(playlistStr.indexOf("?"));
|
||||
int playlistID = playlistStr.toInt( &ok, 10 );
|
||||
if (!ok)
|
||||
{
|
||||
tDebug() << "incorrect grooveshark url";
|
||||
|
@@ -56,6 +56,7 @@ ShortenedLinkParser::handlesUrl( const QString& url )
|
||||
url.contains( "fb.me" ) ||
|
||||
url.contains( "itun.es" ) ||
|
||||
url.contains( "tinyurl.com" ) ||
|
||||
url.contains( "tinysong.com" ) ||
|
||||
url.contains( "rd.io" ) );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user