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

JSResolver: read duration as signed integer

This commit is contained in:
Lorenz Hübschle-Schneider
2014-10-21 10:00:31 +02:00
parent 8106ae2506
commit f5660295ed

View File

@@ -554,7 +554,7 @@ JSResolver::parseResultVariantList( const QVariantList& reslist )
if ( m.value( "preview" ).toBool() == true ) if ( m.value( "preview" ).toBool() == true )
continue; continue;
unsigned int duration = m.value( "duration", 0 ).toUInt(); int duration = m.value( "duration", 0 ).toInt();
if ( duration <= 0 && m.contains( "durationString" ) ) if ( duration <= 0 && m.contains( "durationString" ) )
{ {
QTime time = QTime::fromString( m.value( "durationString" ).toString(), "hh:mm:ss" ); QTime time = QTime::fromString( m.value( "durationString" ).toString(), "hh:mm:ss" );