Fixed: Set permissions on extra and subtitle files

Signed-off-by: Robin Dadswell <robin@dadswell.email>
pull/770/head
Mark McDowall 5 years ago committed by Qstick
parent 9216fe28d0
commit 1d6749ef52

@ -13,15 +13,18 @@ namespace NzbDrone.Core.Extras.Others
public class OtherExtraService : ExtraFileManager<OtherExtraFile>
{
private readonly IOtherExtraFileService _otherExtraFileService;
private readonly IMediaFileAttributeService _mediaFileAttributeService;
public OtherExtraService(IConfigService configService,
IDiskProvider diskProvider,
IDiskTransferService diskTransferService,
IOtherExtraFileService otherExtraFileService,
IMediaFileAttributeService mediaFileAttributeService,
Logger logger)
: base(configService, diskProvider, diskTransferService, logger)
{
_otherExtraFileService = otherExtraFileService;
_mediaFileAttributeService = mediaFileAttributeService;
}
public override int Order => 2;
@ -65,6 +68,7 @@ namespace NzbDrone.Core.Extras.Others
{
var extraFile = ImportFile(author, bookFile, path, readOnly, extension, null);
_mediaFileAttributeService.SetFilePermissions(path);
_otherExtraFileService.Upsert(extraFile);
return extraFile;

Loading…
Cancel
Save