mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fix: Successful downloads that are not moved properly should be retried.
This commit is contained in:
parent
5650f891ee
commit
c0d1d2c502
6 changed files with 170 additions and 1 deletions
|
@ -52,6 +52,11 @@ namespace NzbDrone.Core.Providers
|
|||
return _database.Exists<EpisodeFile>("WHERE Path =@0", path.NormalizePath());
|
||||
}
|
||||
|
||||
public virtual EpisodeFile GetFileByPath(string path)
|
||||
{
|
||||
return _database.SingleOrDefault<EpisodeFile>("WHERE Path =@0", path.NormalizePath());
|
||||
}
|
||||
|
||||
public virtual EpisodeFile GetEpisodeFile(int episodeFileId)
|
||||
{
|
||||
return _database.Single<EpisodeFile>(episodeFileId);
|
||||
|
@ -133,7 +138,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
if (updated > 0)
|
||||
{
|
||||
Logger.Debug("Removed {0} orphan file(s) from database.S", updated);
|
||||
Logger.Debug("Removed {0} orphan file(s) from database.", updated);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue