New: Show warning in queue if download contains executable or archive file and no audio file was detected (#5106)
* Improve handling of releases without audio files New: Show warning in queue if download contains executable or archive file and no audio file was detected (cherry picked from commit b15b6a079846b21cac8476820fce9cde81732291) * New: Add additional archive exentions (cherry picked from commit 750a9353f82da4e016bee25e0c625cd6d8613b57) --------- Co-authored-by: Mark McDowall <mark@mcdowall.ca>pull/5116/head
parent
5947b4642c
commit
ccce4f5cc0
@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.MediaFiles
|
||||
{
|
||||
internal static class FileExtensions
|
||||
{
|
||||
private static List<string> _archiveExtensions = new List<string>
|
||||
{
|
||||
".7z",
|
||||
".bz2",
|
||||
".gz",
|
||||
".r00",
|
||||
".rar",
|
||||
".tar.bz2",
|
||||
".tar.gz",
|
||||
".tar",
|
||||
".tb2",
|
||||
".tbz2",
|
||||
".tgz",
|
||||
".zip",
|
||||
".zipx"
|
||||
};
|
||||
|
||||
private static List<string> _executableExtensions = new List<string>
|
||||
{
|
||||
".exe",
|
||||
".bat",
|
||||
".cmd",
|
||||
".sh"
|
||||
};
|
||||
|
||||
public static HashSet<string> ArchiveExtensions => new HashSet<string>(_archiveExtensions, StringComparer.OrdinalIgnoreCase);
|
||||
public static HashSet<string> ExecutableExtensions => new HashSet<string>(_executableExtensions, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue