Commit 342b3bd2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MetadataParser: Fix album track refresh

refs #89
parent 047308c2
......@@ -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() );
break;
}
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