mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fixed QueueEmpty.txt json file.
This commit is contained in:
parent
b6d43273cf
commit
b498c242af
4 changed files with 88 additions and 62 deletions
|
@ -181,21 +181,16 @@ namespace NzbDrone.Core.Providers
|
|||
return false;
|
||||
}
|
||||
|
||||
//Ensure the folder Exists before trying to move it (No error is thrown if the folder already exists)
|
||||
_diskProvider.CreateDirectory(newFile.DirectoryName);
|
||||
|
||||
//Rename the file
|
||||
Logger.Debug("Moving [{0}] > [{1}]", episodeFile.Path, newFile.FullName);
|
||||
_diskProvider.MoveFile(episodeFile.Path, newFile.FullName);
|
||||
|
||||
//Make the file inherit parent permissions
|
||||
_diskProvider.InheritFolderPermissions(newFile.FullName);
|
||||
|
||||
//Update the filename in the DB
|
||||
episodeFile.Path = newFile.FullName;
|
||||
_mediaFileProvider.Update(episodeFile);
|
||||
|
||||
//ExternalNotification
|
||||
var parseResult = Parser.ParsePath(episodeFile.Path);
|
||||
parseResult.Series = series;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue