1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Don't filter out previews anymore, we handle them now

This commit is contained in:
Dominik Schmidt
2015-04-02 00:52:45 +02:00
parent 6f037355a8
commit f05f9a25c1

View File

@@ -262,10 +262,6 @@ ScriptAccount::parseResultVariantList( const QVariantList& reslist )
foreach( const QVariant& rv, reslist ) foreach( const QVariant& rv, reslist )
{ {
QVariantMap m = rv.toMap(); QVariantMap m = rv.toMap();
// TODO we need to handle preview urls separately. they should never trump a real url, and we need to display
// the purchaseUrl for the user to upgrade to a full stream.
if ( m.value( "preview" ).toBool() == true )
continue;
int duration = m.value( "duration", 0 ).toInt(); int duration = m.value( "duration", 0 ).toInt();
if ( duration <= 0 && m.contains( "durationString" ) ) if ( duration <= 0 && m.contains( "durationString" ) )