diff --git a/src/NzbDrone.Core.Test/Datastore/Migration/198_parse_titles_from_existing_subtitle_filesFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/198_parse_titles_from_existing_subtitle_filesFixture.cs index 754c2308c..332a2f165 100644 --- a/src/NzbDrone.Core.Test/Datastore/Migration/198_parse_titles_from_existing_subtitle_filesFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/Migration/198_parse_titles_from_existing_subtitle_filesFixture.cs @@ -62,7 +62,6 @@ namespace NzbDrone.Core.Test.Datastore.Migration Id = 1, SeriesId = 1, RelativePath = episodePath, - OriginalFilePath = string.Empty, Quality = new { }.ToJson(), Size = 0, DateAdded = now, diff --git a/src/NzbDrone.Core/Datastore/Migration/198_parse_titles_from_existing_subtitle_files.cs b/src/NzbDrone.Core/Datastore/Migration/198_parse_titles_from_existing_subtitle_files.cs index 5b8d18199..121d11d8d 100644 --- a/src/NzbDrone.Core/Datastore/Migration/198_parse_titles_from_existing_subtitle_files.cs +++ b/src/NzbDrone.Core/Datastore/Migration/198_parse_titles_from_existing_subtitle_files.cs @@ -41,7 +41,7 @@ namespace NzbDrone.Core.Datastore.Migration var id = reader.GetInt32(0); var relativePath = reader.GetString(1); var episodeFileRelativePath = reader.GetString(2); - var episodeFileOriginalFilePath = reader.GetString(3); + var episodeFileOriginalFilePath = reader[3] as string; var subtitleTitleInfo = CleanSubtitleTitleInfo(episodeFileRelativePath, episodeFileOriginalFilePath, relativePath);