remove redundant qualifier
This commit is contained in:
parent
3acf041087
commit
489e39033d
@ -209,7 +209,7 @@ public class Entrypoint : IServerEntryPoint
|
||||
}
|
||||
|
||||
// Unless user initiated, this is likely an overlap
|
||||
if (Entrypoint.AutomaticTaskState == TaskState.Running)
|
||||
if (AutomaticTaskState == TaskState.Running)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -222,7 +222,7 @@ public class Entrypoint : IServerEntryPoint
|
||||
/// </summary>
|
||||
private void StartTimer()
|
||||
{
|
||||
if (Entrypoint.AutomaticTaskState == TaskState.Running)
|
||||
if (AutomaticTaskState == TaskState.Running)
|
||||
{
|
||||
_analyzeAgain = true; // Items added during a scan will be included later.
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
var introList = new List<Intro>();
|
||||
|
||||
// Serialize intros
|
||||
foreach (var intro in Plugin.Instance!.Intros)
|
||||
foreach (var intro in Instance!.Intros)
|
||||
{
|
||||
introList.Add(intro.Value);
|
||||
}
|
||||
@ -215,7 +215,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
// Serialize credits
|
||||
introList.Clear();
|
||||
|
||||
foreach (var intro in Plugin.Instance!.Credits)
|
||||
foreach (var intro in Instance.Credits)
|
||||
{
|
||||
introList.Add(intro.Value);
|
||||
}
|
||||
@ -238,7 +238,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
|
||||
foreach (var intro in introList)
|
||||
{
|
||||
Plugin.Instance!.Intros[intro.EpisodeId] = intro;
|
||||
Instance!.Intros[intro.EpisodeId] = intro;
|
||||
}
|
||||
}
|
||||
|
||||
@ -250,7 +250,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
|
||||
foreach (var credit in creditList)
|
||||
{
|
||||
Plugin.Instance!.Credits[credit.EpisodeId] = credit;
|
||||
Instance!.Credits[credit.EpisodeId] = credit;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -340,15 +340,15 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
{
|
||||
if (mode == AnalysisMode.Introduction)
|
||||
{
|
||||
Plugin.Instance!.Intros[intro.Key] = intro.Value;
|
||||
Instance!.Intros[intro.Key] = intro.Value;
|
||||
}
|
||||
else if (mode == AnalysisMode.Credits)
|
||||
{
|
||||
Plugin.Instance!.Credits[intro.Key] = intro.Value;
|
||||
Instance!.Credits[intro.Key] = intro.Value;
|
||||
}
|
||||
}
|
||||
|
||||
Plugin.Instance!.SaveTimestamps();
|
||||
Instance!.SaveTimestamps();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user