From 1d6749ef52fb6a1175f5683ed73b1093e813d8e6 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 7 Oct 2019 09:40:48 -0700 Subject: [PATCH] Fixed: Set permissions on extra and subtitle files Signed-off-by: Robin Dadswell --- src/NzbDrone.Core/Extras/Others/OtherExtraService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NzbDrone.Core/Extras/Others/OtherExtraService.cs b/src/NzbDrone.Core/Extras/Others/OtherExtraService.cs index 1a54d37c4..58560993a 100644 --- a/src/NzbDrone.Core/Extras/Others/OtherExtraService.cs +++ b/src/NzbDrone.Core/Extras/Others/OtherExtraService.cs @@ -13,15 +13,18 @@ namespace NzbDrone.Core.Extras.Others public class OtherExtraService : ExtraFileManager { 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 @@ public override ExtraFile Import(Author author, BookFile bookFile, string path, { var extraFile = ImportFile(author, bookFile, path, readOnly, extension, null); + _mediaFileAttributeService.SetFilePermissions(path); _otherExtraFileService.Upsert(extraFile); return extraFile;