mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-25 11:13:39 +02:00
Fixed: Failing to import any file for series if one has bad encoding
Closes #7157
This commit is contained in:
parent
1584311914
commit
7f0696c574
@ -119,17 +119,17 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
|
|||||||
{
|
{
|
||||||
ImportDecision decision = null;
|
ImportDecision decision = null;
|
||||||
|
|
||||||
var fileEpisodeInfo = Parser.Parser.ParsePath(localEpisode.Path);
|
|
||||||
|
|
||||||
localEpisode.FileEpisodeInfo = fileEpisodeInfo;
|
|
||||||
localEpisode.Size = _diskProvider.GetFileSize(localEpisode.Path);
|
|
||||||
localEpisode.ReleaseType = localEpisode.DownloadClientEpisodeInfo?.ReleaseType ??
|
|
||||||
localEpisode.FolderEpisodeInfo?.ReleaseType ??
|
|
||||||
localEpisode.FileEpisodeInfo?.ReleaseType ??
|
|
||||||
ReleaseType.Unknown;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
var fileEpisodeInfo = Parser.Parser.ParsePath(localEpisode.Path);
|
||||||
|
|
||||||
|
localEpisode.FileEpisodeInfo = fileEpisodeInfo;
|
||||||
|
localEpisode.Size = _diskProvider.GetFileSize(localEpisode.Path);
|
||||||
|
localEpisode.ReleaseType = localEpisode.DownloadClientEpisodeInfo?.ReleaseType ??
|
||||||
|
localEpisode.FolderEpisodeInfo?.ReleaseType ??
|
||||||
|
localEpisode.FileEpisodeInfo?.ReleaseType ??
|
||||||
|
ReleaseType.Unknown;
|
||||||
|
|
||||||
_aggregationService.Augment(localEpisode, downloadClientItem);
|
_aggregationService.Augment(localEpisode, downloadClientItem);
|
||||||
|
|
||||||
if (localEpisode.Episodes.Empty())
|
if (localEpisode.Episodes.Empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user