mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Ignore preview-only URLs for now, until we properly handle them
This commit is contained in:
@@ -411,6 +411,11 @@ QtScriptResolver::parseResultVariantList( const QVariantList& reslist )
|
|||||||
if ( m.value( "artist" ).toString().trimmed().isEmpty() || m.value( "track" ).toString().trimmed().isEmpty() )
|
if ( m.value( "artist" ).toString().trimmed().isEmpty() || m.value( "track" ).toString().trimmed().isEmpty() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// 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;
|
||||||
|
|
||||||
Tomahawk::result_ptr rp = Tomahawk::Result::get( m.value( "url" ).toString() );
|
Tomahawk::result_ptr rp = Tomahawk::Result::get( m.value( "url" ).toString() );
|
||||||
Tomahawk::artist_ptr ap = Tomahawk::Artist::get( m.value( "artist" ).toString(), false );
|
Tomahawk::artist_ptr ap = Tomahawk::Artist::get( m.value( "artist" ).toString(), false );
|
||||||
rp->setArtist( ap );
|
rp->setArtist( ap );
|
||||||
|
Reference in New Issue
Block a user