mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Propagate http resulthint when loading
This commit is contained in:
@@ -74,13 +74,17 @@ DatabaseCommand_LoadPlaylistEntries::generateEntries( DatabaseImpl* dbi )
|
|||||||
e->setAnnotation( query.value( 4 ).toString() );
|
e->setAnnotation( query.value( 4 ).toString() );
|
||||||
e->setDuration( query.value( 5 ).toUInt() );
|
e->setDuration( query.value( 5 ).toUInt() );
|
||||||
e->setLastmodified( 0 ); // TODO e->lastmodified = query.value( 6 ).toInt();
|
e->setLastmodified( 0 ); // TODO e->lastmodified = query.value( 6 ).toInt();
|
||||||
e->setResultHint( query.value( 8 ).toString() );
|
const QString resultHint = query.value( 8 ).toString();
|
||||||
|
e->setResultHint( resultHint );
|
||||||
|
|
||||||
Tomahawk::query_ptr q = Tomahawk::Query::get( query.value( 2 ).toString(), query.value( 1 ).toString(), query.value( 3 ).toString() );
|
Tomahawk::query_ptr q = Tomahawk::Query::get( query.value( 2 ).toString(), query.value( 1 ).toString(), query.value( 3 ).toString() );
|
||||||
if ( q.isNull() )
|
if ( q.isNull() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
q->setResultHint( query.value( 8 ).toString() );
|
q->setResultHint( resultHint );
|
||||||
|
if ( resultHint.startsWith( "http" ) )
|
||||||
|
q->setSaveHTTPResultHint( true );
|
||||||
|
|
||||||
q->setProperty( "annotation", e->annotation() );
|
q->setProperty( "annotation", e->annotation() );
|
||||||
e->setQuery( q );
|
e->setQuery( q );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user