Skip to content

Commit

Permalink
Fix a TvDB Linking error
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed Oct 15, 2019
1 parent 46bebc8 commit e2a7209
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
3 changes: 1 addition & 2 deletions Shoko.Server/Databases/SQLite.cs
Expand Up @@ -16,7 +16,6 @@ namespace Shoko.Server.Databases
{ {
public class SQLite : BaseDatabase<SQLiteConnection>, IDatabase public class SQLite : BaseDatabase<SQLiteConnection>, IDatabase
{ {
public const string DefaultDBName = @"JMMServer.db3";


public string Name { get; } = "SQLite"; public string Name { get; } = "SQLite";


Expand All @@ -36,7 +35,7 @@ public static string GetDatabasePath()


public static string GetDatabaseFilePath() public static string GetDatabaseFilePath()
{ {
string dbName = Path.Combine(GetDatabasePath(), DefaultDBName); string dbName = Path.Combine(GetDatabasePath(), ServerSettings.Instance.Database.SQLite_DatabaseFile);
return dbName; return dbName;
} }


Expand Down
10 changes: 4 additions & 6 deletions Shoko.Server/Providers/TvDB/TvDBLinkingHelper.cs
Expand Up @@ -52,12 +52,10 @@ public static void GenerateTvDBEpisodeMatches(int animeID, bool skipMatchClearin
} }
} }


xref = new CrossRef_AniDB_TvDB_Episode if (xref == null) xref = new CrossRef_AniDB_TvDB_Episode();
{ xref.AniDBEpisodeID = match.AniDB.EpisodeID;
AniDBEpisodeID = match.AniDB.EpisodeID, xref.TvDBEpisodeID = match.TvDB.Id;
TvDBEpisodeID = match.TvDB.Id, xref.MatchRating = match.Rating;
MatchRating = match.Rating
};


tosave.Add(xref); tosave.Add(xref);
} }
Expand Down
8 changes: 0 additions & 8 deletions Shoko.Server/Settings/Migration/ServerSettings_Legacy.cs
Expand Up @@ -97,14 +97,6 @@ public static void LoadSettingsFromFile(string tmp_setting_file, bool delete_tmp
{ {
try try
{ {
//Reconfigure log file to applicationpath
var target = (FileTarget) LogManager.Configuration?.FindTargetByName("file");
if (target != null)
{
target.FileName = ApplicationPath + "/logs/${shortdate}.log";
LogManager.ReconfigExistingLoggers();
}

disabledSave = true; disabledSave = true;
bool startedWithFreshConfig = false; bool startedWithFreshConfig = false;


Expand Down

0 comments on commit e2a7209

Please sign in to comment.