diff --git a/src/NzbDrone.Core/Extras/Lyrics/LyricService.cs b/src/NzbDrone.Core/Extras/Lyrics/LyricService.cs index ae4a32e0d..69f4b684e 100644 --- a/src/NzbDrone.Core/Extras/Lyrics/LyricService.cs +++ b/src/NzbDrone.Core/Extras/Lyrics/LyricService.cs @@ -15,16 +15,19 @@ namespace NzbDrone.Core.Extras.Lyrics public class LyricService : ExtraFileManager { private readonly ILyricFileService _lyricFileService; + private readonly IMediaFileAttributeService _mediaFileAttributeService; private readonly Logger _logger; public LyricService(IConfigService configService, IDiskProvider diskProvider, IDiskTransferService diskTransferService, ILyricFileService lyricFileService, + IMediaFileAttributeService mediaFileAttributeService, Logger logger) : base(configService, diskProvider, diskTransferService, logger) { _lyricFileService = lyricFileService; + _mediaFileAttributeService = mediaFileAttributeService; _logger = logger; } @@ -88,6 +91,7 @@ namespace NzbDrone.Core.Extras.Lyrics var suffix = GetSuffix(1, false); var subtitleFile = ImportFile(artist, trackFile, path, readOnly, extension, suffix); + _mediaFileAttributeService.SetFilePermissions(path); _lyricFileService.Upsert(subtitleFile); return subtitleFile; diff --git a/src/NzbDrone.Core/Extras/Others/OtherExtraService.cs b/src/NzbDrone.Core/Extras/Others/OtherExtraService.cs index 10c5a8a73..98470e5fe 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 @@ namespace NzbDrone.Core.Extras.Others { var extraFile = ImportFile(artist, trackFile, path, readOnly, extension, null); + _mediaFileAttributeService.SetFilePermissions(path); _otherExtraFileService.Upsert(extraFile); return extraFile;