mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Moved filename only piece to Parser.
Added .mp4 to media file extensions. .mp4 will be treated as TV quality.
This commit is contained in:
parent
5e0427f927
commit
d4ef96f97b
2 changed files with 5 additions and 12 deletions
|
@ -12,7 +12,7 @@ namespace NzbDrone.Core.Providers
|
|||
public class MediaFileProvider
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
private static readonly string[] MediaExtentions = new[] { "*.mkv", "*.avi", "*.wmv" };
|
||||
private static readonly string[] MediaExtentions = new[] { "*.mkv", "*.avi", "*.wmv", "*.mp4" };
|
||||
private readonly DiskProvider _diskProvider;
|
||||
private readonly EpisodeProvider _episodeProvider;
|
||||
private readonly IRepository _repository;
|
||||
|
@ -82,8 +82,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
if (!_repository.Exists<EpisodeFile>(e => e.Path == Parser.NormalizePath(filePath)))
|
||||
{
|
||||
//Use only the filename, not the entire path
|
||||
var parseResult = Parser.ParseEpisodeInfo(new FileInfo(filePath).Name);
|
||||
var parseResult = Parser.ParseEpisodeInfo(filePath);
|
||||
|
||||
if (parseResult == null)
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue