mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Fixed an issue with parsing full path instead of filename on import
This should fix Card #61
This commit is contained in:
parent
bb42bb30aa
commit
87731d56bf
2 changed files with 17 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue