mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-08 10:02:29 +02:00
JSResolver: read duration as signed integer
This commit is contained in:
parent
8106ae2506
commit
f5660295ed
@ -554,7 +554,7 @@ JSResolver::parseResultVariantList( const QVariantList& reslist )
|
||||
if ( m.value( "preview" ).toBool() == true )
|
||||
continue;
|
||||
|
||||
unsigned int duration = m.value( "duration", 0 ).toUInt();
|
||||
int duration = m.value( "duration", 0 ).toInt();
|
||||
if ( duration <= 0 && m.contains( "durationString" ) )
|
||||
{
|
||||
QTime time = QTime::fromString( m.value( "durationString" ).toString(), "hh:mm:ss" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user