Fixed an issue with parsing full path instead of filename on import

This should fix Card #61
This commit is contained in:
Mark McDowall 2013-07-12 01:15:23 -07:00
commit 87731d56bf
2 changed files with 17 additions and 3 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using NLog;
@ -42,7 +43,8 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
try
{
var parsedEpisode = _parsingService.GetEpisodes(file, series);
var fileWithoutExtension = Path.GetFileNameWithoutExtension(file);
var parsedEpisode = _parsingService.GetEpisodes(Path.GetFileNameWithoutExtension(file), series);
if (parsedEpisode != null)
{