Fixed: Subtitle title migration when original title is null

This commit is contained in:
Mark McDowall 2024-01-20 16:16:29 -08:00 committed by Mark McDowall
parent dbbf1a7f58
commit 8921c5d7a0
2 changed files with 1 additions and 2 deletions

View File

@ -62,7 +62,6 @@ namespace NzbDrone.Core.Test.Datastore.Migration
Id = 1, Id = 1,
SeriesId = 1, SeriesId = 1,
RelativePath = episodePath, RelativePath = episodePath,
OriginalFilePath = string.Empty,
Quality = new { }.ToJson(), Quality = new { }.ToJson(),
Size = 0, Size = 0,
DateAdded = now, DateAdded = now,

View File

@ -41,7 +41,7 @@ namespace NzbDrone.Core.Datastore.Migration
var id = reader.GetInt32(0); var id = reader.GetInt32(0);
var relativePath = reader.GetString(1); var relativePath = reader.GetString(1);
var episodeFileRelativePath = reader.GetString(2); var episodeFileRelativePath = reader.GetString(2);
var episodeFileOriginalFilePath = reader.GetString(3); var episodeFileOriginalFilePath = reader[3] as string;
var subtitleTitleInfo = CleanSubtitleTitleInfo(episodeFileRelativePath, episodeFileOriginalFilePath, relativePath); var subtitleTitleInfo = CleanSubtitleTitleInfo(episodeFileRelativePath, episodeFileOriginalFilePath, relativePath);