mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 01:39:42 +01:00
Ignore preview-only URLs for now, until we properly handle them
This commit is contained in:
parent
eabefe438d
commit
99d75636a9
@ -411,6 +411,11 @@ QtScriptResolver::parseResultVariantList( const QVariantList& reslist )
|
||||
if ( m.value( "artist" ).toString().trimmed().isEmpty() || m.value( "track" ).toString().trimmed().isEmpty() )
|
||||
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::artist_ptr ap = Tomahawk::Artist::get( m.value( "artist" ).toString(), false );
|
||||
rp->setArtist( ap );
|
||||
|
Loading…
x
Reference in New Issue
Block a user