Commit adc268b1 authored by Rafaël Carré's avatar Rafaël Carré

correctly displays album art in playlist, fix by ILEoo

parent aaf50f16
......@@ -171,18 +171,9 @@ void BackgroundWidget::update( QString url )
label->setPixmap( QPixmap( ":/vlc128.png" ) );
return;
}
QString arturl = url.replace( "file://",QString("" ) );
if( arturl.isNull() )
{
if( QDate::currentDate().dayOfYear() >= 354 )
label->setPixmap( QPixmap( ":/vlc128-christmas.png" ) );
else
label->setPixmap( QPixmap( ":/vlc128.png" ) );
}
else
{
label->setPixmap( QPixmap( arturl ) );
label->setPixmap( QPixmap( url ) );
msg_Dbg( p_intf, "changing input b_need_update done ");
}
}
......
......@@ -191,8 +191,8 @@ void InputManager::update()
free( psz_art );
if( artUrl != url )
{
emit artChanged( url );
artUrl = url;
artUrl = url.replace( "file://",QString("" ) );
emit artChanged( artUrl );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment