1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-10 23:29:53 +02:00

Fixed: Failing to import any file for series if one has bad encoding

Closes #7157
This commit is contained in:
Mark McDowall 2024-08-31 15:00:35 -07:00 committed by Mark McDowall
parent 1584311914
commit 7f0696c574

View File

@ -119,6 +119,8 @@ private ImportDecision GetDecision(LocalEpisode localEpisode, DownloadClientItem
{ {
ImportDecision decision = null; ImportDecision decision = null;
try
{
var fileEpisodeInfo = Parser.Parser.ParsePath(localEpisode.Path); var fileEpisodeInfo = Parser.Parser.ParsePath(localEpisode.Path);
localEpisode.FileEpisodeInfo = fileEpisodeInfo; localEpisode.FileEpisodeInfo = fileEpisodeInfo;
@ -128,8 +130,6 @@ private ImportDecision GetDecision(LocalEpisode localEpisode, DownloadClientItem
localEpisode.FileEpisodeInfo?.ReleaseType ?? localEpisode.FileEpisodeInfo?.ReleaseType ??
ReleaseType.Unknown; ReleaseType.Unknown;
try
{
_aggregationService.Augment(localEpisode, downloadClientItem); _aggregationService.Augment(localEpisode, downloadClientItem);
if (localEpisode.Episodes.Empty()) if (localEpisode.Episodes.Empty())