Commit 148baee2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MetadataParser: Fix album track refresh

refs #89

(cherry picked from commit 342b3bd2)
Signed-off-by: default avatarHugo Beauzée-Luyssen <>
parent b3b5c5f5
......@@ -584,8 +584,10 @@ std::tuple<bool, bool> MetadataAnalyzer::refreshMedia( IItem& item ) const
LOG_ERROR( "Can't fetch album associated to album track ",
albumTrack->id(), "(media ", media->id(), ")" );
album->removeTrack( *media, *albumTrack );
AlbumTrack::destroy( m_ml, albumTrack->id() );
Artist::dropMediaArtistRelation( m_ml, media->id() );
case IMedia::SubType::Movie:
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