mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +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( "/" );
|
QStringList urlParts = linkRaw.split( "/" );
|
||||||
bool ok;
|
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)
|
if (!ok)
|
||||||
{
|
{
|
||||||
tDebug() << "incorrect grooveshark url";
|
tDebug() << "incorrect grooveshark url";
|
||||||
|
@@ -56,6 +56,7 @@ ShortenedLinkParser::handlesUrl( const QString& url )
|
|||||||
url.contains( "fb.me" ) ||
|
url.contains( "fb.me" ) ||
|
||||||
url.contains( "itun.es" ) ||
|
url.contains( "itun.es" ) ||
|
||||||
url.contains( "tinyurl.com" ) ||
|
url.contains( "tinyurl.com" ) ||
|
||||||
|
url.contains( "tinysong.com" ) ||
|
||||||
url.contains( "rd.io" ) );
|
url.contains( "rd.io" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user