Skip to content
Permalink
Browse files

Fix a TvDB Linking error

  • Loading branch information...
da3dsoul committed Oct 15, 2019
1 parent 46bebc8 commit e2a7209e5c961ad4038e7c214405f5ebfcd6bf94
@@ -16,7 +16,6 @@ namespace Shoko.Server.Databases
{
public class SQLite : BaseDatabase<SQLiteConnection>, IDatabase
{
public const string DefaultDBName = @"JMMServer.db3";

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

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

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

@@ -52,12 +52,10 @@ public static void GenerateTvDBEpisodeMatches(int animeID, bool skipMatchClearin
}
}

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

tosave.Add(xref);
}
@@ -97,14 +97,6 @@ public static void LoadSettingsFromFile(string tmp_setting_file, bool delete_tmp
{
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;
bool startedWithFreshConfig = false;

0 comments on commit e2a7209

Please sign in to comment.
You can’t perform that action at this time.