mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-28 11:24:40 +01:00
Add extension only for known protocols in ReleaseResource
This commit is contained in:
parent
7c5409383e
commit
f7d7cca982
1 changed files with 6 additions and 6 deletions
|
|
@ -43,14 +43,14 @@ public string FileName
|
|||
{
|
||||
get
|
||||
{
|
||||
var extension = "torrent";
|
||||
|
||||
if (Protocol == DownloadProtocol.Usenet)
|
||||
var extension = Protocol switch
|
||||
{
|
||||
extension = "nzb";
|
||||
}
|
||||
DownloadProtocol.Torrent => ".torrent",
|
||||
DownloadProtocol.Usenet => ".nzb",
|
||||
_ => string.Empty
|
||||
};
|
||||
|
||||
return $"{Title}.{extension}";
|
||||
return $"{Title}{extension}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue