mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Removed Episodes list from EpisodeFile object.
This commit is contained in:
parent
cbfbb87926
commit
56fdf1a040
9 changed files with 352 additions and 285 deletions
|
@ -179,7 +179,7 @@ namespace NzbDrone.Core.Providers
|
|||
Logger.Trace("File {0} no longer exists on disk. removing from database.", episodeFile.Path);
|
||||
|
||||
//Set the EpisodeFileId for each episode attached to this file to 0
|
||||
foreach (var episode in episodeFile.Episodes)
|
||||
foreach (var episode in _episodeProvider.GetEpisodesByFileId(episodeFile.EpisodeFileId))
|
||||
{
|
||||
episode.EpisodeFileId = 0;
|
||||
_episodeProvider.UpdateEpisode(episode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue