Movin on up (movin on up) (#166)
This commit is contained in:
parent
0709628e83
commit
bee1026738
@ -60,15 +60,27 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|||||||
|
|
||||||
FFmpegPath = serverConfiguration.GetEncodingOptions().EncoderAppPathDisplay;
|
FFmpegPath = serverConfiguration.GetEncodingOptions().EncoderAppPathDisplay;
|
||||||
|
|
||||||
var introsDirectory = Path.Join(applicationPaths.CachePath, "introskipper");
|
var pluginDirName = "introskipper";
|
||||||
FingerprintCachePath = Path.Join(introsDirectory, "chromaprints");
|
var pluginCachePath = "chromaprints";
|
||||||
_introPath = Path.Join(applicationPaths.CachePath, "introskipper", "intros.xml");
|
|
||||||
_creditsPath = Path.Join(applicationPaths.CachePath, "introskipper", "credits.xml");
|
|
||||||
|
|
||||||
var oldintrosDirectory = Path.Join(applicationPaths.PluginConfigurationsPath, "intros");
|
var introsDirectory = Path.Join(applicationPaths.DataPath, pluginDirName);
|
||||||
_oldFingerprintCachePath = Path.Join(oldintrosDirectory, "cache");
|
FingerprintCachePath = Path.Join(introsDirectory, pluginCachePath);
|
||||||
_oldintroPath = Path.Join(applicationPaths.PluginConfigurationsPath, "intros", "intros.xml");
|
_introPath = Path.Join(applicationPaths.DataPath, pluginDirName, "intros.xml");
|
||||||
_oldcreditsPath = Path.Join(applicationPaths.PluginConfigurationsPath, "intros", "credits.xml");
|
_creditsPath = Path.Join(applicationPaths.DataPath, pluginDirName, "credits.xml");
|
||||||
|
|
||||||
|
var cacheRoot = applicationPaths.CachePath;
|
||||||
|
var oldintrosDirectory = Path.Join(cacheRoot, pluginDirName);
|
||||||
|
if (!Directory.Exists(oldintrosDirectory))
|
||||||
|
{
|
||||||
|
pluginDirName = "intros";
|
||||||
|
pluginCachePath = "cache";
|
||||||
|
cacheRoot = applicationPaths.PluginConfigurationsPath;
|
||||||
|
oldintrosDirectory = Path.Join(cacheRoot, pluginDirName);
|
||||||
|
}
|
||||||
|
|
||||||
|
_oldFingerprintCachePath = Path.Join(oldintrosDirectory, pluginCachePath);
|
||||||
|
_oldintroPath = Path.Join(cacheRoot, pluginDirName, "intros.xml");
|
||||||
|
_oldcreditsPath = Path.Join(cacheRoot, pluginDirName, "credits.xml");
|
||||||
|
|
||||||
// Create the base & cache directories (if needed).
|
// Create the base & cache directories (if needed).
|
||||||
if (!Directory.Exists(FingerprintCachePath))
|
if (!Directory.Exists(FingerprintCachePath))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user