mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-04-26 05:48:44 -05:00
added mapping to emby and plex nodes
added ability to override server/token/mapping for emby/plex nodes
This commit is contained in:
@@ -33,6 +33,24 @@ public class PlexTests
|
||||
var node = new PlexUpdater();
|
||||
Assert.AreEqual(2, node.Execute(args));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Plex_Mapping()
|
||||
{
|
||||
var args = new NodeParameters(@"/mnt/movies/Citizen Kane (1941)/Citizen Kane (1941).mp4", new TestLogger(), false, string.Empty);
|
||||
var settings = new PluginSettings();
|
||||
settings.Mapping = new List<KeyValuePair<string, string>>();
|
||||
settings.Mapping.Add(new KeyValuePair<string, string>("/mnt/movies", "/media/movies"));
|
||||
|
||||
args.GetPluginSettingsJson = (string input) =>
|
||||
{
|
||||
return File.ReadAllText("../../../settings.json");
|
||||
};
|
||||
|
||||
var node = new PlexUpdater();
|
||||
Assert.AreEqual(1, node.Execute(args));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user