added 5.1 and 7.1 options to add audio track

increased plugin versions to 0.6.1
fixed issue with replace original returning -11 instead of -1
fixed copy flie when on external node
This commit is contained in:
John Andrews
2022-05-15 11:32:18 +12:00
parent 4bab6ea879
commit 36316832aa
35 changed files with 399 additions and 32 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ public class PlexAnalyze : PlexNode
protected override int ExecuteActual(NodeParameters args, PlexDirectory directory, string baseUrl, string mappedPath, string accessToken)
{
string filename = new FileInfo(args.WorkingFile).Name;
string mappedFile = mappedPath + (mappedPath.IndexOf("/") >= 0 ? "/" : "\\") + filename;
string mappedFile = mappedPath + (mappedPath.IndexOf("/") >= 0 ? "/" : @"\") + filename;
using var httpClient = new HttpClient();
string itemId = GetItemId(httpClient, args, baseUrl, $"library/sections/{directory.Key}/all?includeCollections=1&includeAdvanced=1", accessToken, mappedFile);