|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|
|
|
using System.IO;
|
|
|
|
using System.IO;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using FFMpegCore;
|
|
|
|
using FFMpegCore;
|
|
|
|
|
|
|
|
using FFMpegCore.Enums;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Common.Disk;
|
|
|
|
using NzbDrone.Common.Disk;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
@ -55,6 +56,11 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
|
|
|
|
throw new FileNotFoundException("Media file does not exist: " + filename);
|
|
|
|
throw new FileNotFoundException("Media file does not exist: " + filename);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (MediaFileExtensions.DiskExtensions.Contains(Path.GetExtension(filename)))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Cache media info by path, mtime and length so we don't need to read files multiple times
|
|
|
|
// TODO: Cache media info by path, mtime and length so we don't need to read files multiple times
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|