Skip to content

Commit

Permalink
try to remedy MovieFolderFormat and MovieFilenameFormat issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Nov 3, 2021
1 parent c7a4af0 commit 4dbbc01
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions TVRename/Settings/TVSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,8 +1443,8 @@ public void load([NotNull] XElement xmlSettings)
AutoSelectShowInMyShows = xmlSettings.ExtractBool("AutoSelectShowInMyShows", true);
SpecialsFolderName = xmlSettings.ExtractString("SpecialsFolderName", "Specials");
SeasonFolderFormat = xmlSettings.ExtractString("SeasonFolderFormat");
MovieFolderFormat = xmlSettings.ExtractString("MovieFolderFormat");
MovieFilenameFormat = xmlSettings.ExtractString("MovieFilenameFormat");
MovieFolderFormat = xmlSettings.ExtractString("MovieFolderFormat", "{ShowName} ({Year})");
MovieFilenameFormat = xmlSettings.ExtractString("MovieFilenameFormat", "{ShowName} ({Year})");
SearchJSONURL = xmlSettings.ExtractString("SearchJSONURL", "https://eztv.ag/api/get-torrents?imdb_id=");
SearchJSONRootNode = xmlSettings.ExtractString("SearchJSONRootNode", "torrents");
SearchJSONFilenameToken = xmlSettings.ExtractString("SearchJSONFilenameToken", "filename");
Expand Down Expand Up @@ -1643,6 +1643,15 @@ public void load([NotNull] XElement xmlSettings)
DefaultMovieProvider = TVDoc.ProviderType.TMDB;
Logger.Error($"Has to update default movie provider");
}
//todo - See whether we need still need this - was just in place to try and remedy issues with 4.4 conversion
if (!MovieFolderFormat.HasValue())
{
MovieFolderFormat = "{ShowName} ({Year})";
}
if (!MovieFilenameFormat.HasValue())
{
MovieFilenameFormat = "{ShowName} ({Year})";
}
}

private void UpdateAppUpdateSettings([NotNull] XElement xmlSettings)
Expand Down

0 comments on commit 4dbbc01

Please sign in to comment.