mirror of
https://github.com/Readarr/Readarr
synced 2026-05-09 05:21:41 +02:00
Fixed: Set permissions on extra and subtitle files
Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
parent
c0f8d92c6e
commit
aa7d289a48
1 changed files with 4 additions and 0 deletions
|
|
@ -13,15 +13,18 @@ namespace NzbDrone.Core.Extras.Others
|
||||||
public class OtherExtraService : ExtraFileManager<OtherExtraFile>
|
public class OtherExtraService : ExtraFileManager<OtherExtraFile>
|
||||||
{
|
{
|
||||||
private readonly IOtherExtraFileService _otherExtraFileService;
|
private readonly IOtherExtraFileService _otherExtraFileService;
|
||||||
|
private readonly IMediaFileAttributeService _mediaFileAttributeService;
|
||||||
|
|
||||||
public OtherExtraService(IConfigService configService,
|
public OtherExtraService(IConfigService configService,
|
||||||
IDiskProvider diskProvider,
|
IDiskProvider diskProvider,
|
||||||
IDiskTransferService diskTransferService,
|
IDiskTransferService diskTransferService,
|
||||||
IOtherExtraFileService otherExtraFileService,
|
IOtherExtraFileService otherExtraFileService,
|
||||||
|
IMediaFileAttributeService mediaFileAttributeService,
|
||||||
Logger logger)
|
Logger logger)
|
||||||
: base(configService, diskProvider, diskTransferService, logger)
|
: base(configService, diskProvider, diskTransferService, logger)
|
||||||
{
|
{
|
||||||
_otherExtraFileService = otherExtraFileService;
|
_otherExtraFileService = otherExtraFileService;
|
||||||
|
_mediaFileAttributeService = mediaFileAttributeService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Order => 2;
|
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);
|
var extraFile = ImportFile(author, bookFile, path, readOnly, extension, null);
|
||||||
|
|
||||||
|
_mediaFileAttributeService.SetFilePermissions(path);
|
||||||
_otherExtraFileService.Upsert(extraFile);
|
_otherExtraFileService.Upsert(extraFile);
|
||||||
|
|
||||||
return extraFile;
|
return extraFile;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue