mirror of
https://github.com/Radarr/Radarr
synced 2025-02-26 08:02:56 +00:00
Fix epic fail on migration 117
This commit is contained in:
parent
ad38437b70
commit
bd0ec5dfce
1 changed files with 9 additions and 2 deletions
|
@ -26,7 +26,14 @@ private void SetSortTitles(IDbConnection conn, IDbTransaction tran)
|
||||||
var id = seriesReader.GetInt32(0);
|
var id = seriesReader.GetInt32(0);
|
||||||
var relativePath = seriesReader.GetString(1);
|
var relativePath = seriesReader.GetString(1);
|
||||||
|
|
||||||
var edition = Parser.Parser.ParseMovieTitle(relativePath).Edition;
|
var result = Parser.Parser.ParseMovieTitle(relativePath);
|
||||||
|
|
||||||
|
var edition = "";
|
||||||
|
|
||||||
|
if (result != null)
|
||||||
|
{
|
||||||
|
edition = Parser.Parser.ParseMovieTitle(relativePath).Edition;
|
||||||
|
}
|
||||||
|
|
||||||
using (IDbCommand updateCmd = conn.CreateCommand())
|
using (IDbCommand updateCmd = conn.CreateCommand())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue