New: Show warning in queue if download contains executable or archive file and no video file was detected (cherry picked from commit b15b6a079846b21cac8476820fce9cde81732291)pull/8026/head
parent
d4ce08a044
commit
ce031124c7
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.MediaFiles
|
||||
{
|
||||
internal static class FileExtensions
|
||||
{
|
||||
private static List<string> _archiveExtensions = new List<string>
|
||||
{
|
||||
".rar",
|
||||
".r00",
|
||||
".zip",
|
||||
".tar",
|
||||
".gz",
|
||||
".tar.gz"
|
||||
};
|
||||
|
||||
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