1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 10:07:10 +00:00

Fixed bug with duplicate episode naming.

This commit is contained in:
Mark McDowall 2011-12-05 18:22:55 -08:00
parent 8170daf025
commit d2779d2cdf

View file

@ -170,6 +170,9 @@ public virtual IList<Episode> GetEpisodesByParseResult(EpisodeParseResult parseR
if (parseResult.EpisodeNumbers == null) if (parseResult.EpisodeNumbers == null)
return result; return result;
//Set it to empty before looping through the episode numbers
parseResult.EpisodeTitle = String.Empty;
foreach (var episodeNumber in parseResult.EpisodeNumbers) foreach (var episodeNumber in parseResult.EpisodeNumbers)
{ {
var episodeInfo = GetEpisode(parseResult.Series.SeriesId, parseResult.SeasonNumber, episodeNumber); var episodeInfo = GetEpisode(parseResult.Series.SeriesId, parseResult.SeasonNumber, episodeNumber);