diff --git a/MB_SubSonic/Plugin.cs b/MB_SubSonic/Plugin.cs index 2b8ad73..a974068 100644 --- a/MB_SubSonic/Plugin.cs +++ b/MB_SubSonic/Plugin.cs @@ -36,7 +36,7 @@ public Interfaces.Plugin.PluginInfo Initialise(IntPtr apiInterfacePtr) // current only applies to artwork, lyrics or instant messenger name that appears in the provider drop down selector or target Instant Messenger _about.Type = Interfaces.Plugin.PluginType.Storage; _about.VersionMajor = 2; // your plugin version - _about.VersionMinor = 30; + _about.VersionMinor = 31; _about.Revision = 0; _about.MinInterfaceVersion = Interfaces.Plugin.MinInterfaceVersion; _about.MinApiRevision = Interfaces.Plugin.MinApiRevision; diff --git a/MB_SubSonic/Properties/AssemblyInfo.cs b/MB_SubSonic/Properties/AssemblyInfo.cs index 6676085..c6a54d3 100644 --- a/MB_SubSonic/Properties/AssemblyInfo.cs +++ b/MB_SubSonic/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.30.0.0")] -[assembly: AssemblyFileVersion("2.30.0.0")] +[assembly: AssemblyVersion("2.31.0.0")] +[assembly: AssemblyFileVersion("2.31.0.0")] diff --git a/MB_SubSonic/Subsonic.cs b/MB_SubSonic/Subsonic.cs index 2f92853..b695977 100644 --- a/MB_SubSonic/Subsonic.cs +++ b/MB_SubSonic/Subsonic.cs @@ -67,7 +67,7 @@ public static bool PingServer(SubsonicSettings settings) try { - var request = new RestRequest("ping"); + var request = new RestRequest("ping.view"); var response = SendRequest(request); _serverType = GetServerTypeFromResponse(response); return IsPingOk(response); @@ -194,7 +194,7 @@ public static string[] GetFolders(string path) } else { - var request = new RestRequest("getMusicDirectory"); + var request = new RestRequest("getMusicDirectory.view"); request.AddParameter("id", folderId); var response = SendRequest(request); @@ -289,7 +289,7 @@ private static List> GetRootFolders(bool collection if (!refresh && !FolderLookup.Count.Equals(0)) return FolderLookup.ToList(); var collection = new List>(); - var request = new RestRequest("getMusicFolders"); + var request = new RestRequest("getMusicFolders.view"); var response = SendRequest(request); if (_serverType == SubsonicSettings.ServerType.Subsonic) { @@ -379,7 +379,7 @@ private static IEnumerable> GetIndexes(string colle SetBackgroundTaskMessage("Running GetIndexes..."); var folders = new List>(); - var request = new RestRequest("getIndexes"); + var request = new RestRequest("getIndexes.view"); request.AddParameter("musicFolderId", collectionId); var response = SendRequest(request); @@ -474,7 +474,7 @@ private static void GetFolderFiles(string baseFolderName, string folderId, if (rootFolders.Any(x => x.Key.Equals(folderId))) return; - var request = new RestRequest("getMusicDirectory"); + var request = new RestRequest("getMusicDirectory.view"); request.AddParameter("id", folderId); var response = SendRequest(request); @@ -581,7 +581,7 @@ private static string GetFolderId(string url) else if (folderId != null) { var folderName = url.Substring(sectionStartIndex, charIndex - sectionStartIndex); - var request = new RestRequest("getMusicDirectory"); + var request = new RestRequest("getMusicDirectory.view"); request.AddParameter("id", folderId); var response = SendRequest(request); @@ -653,7 +653,7 @@ private static string GetFileId(string url) if (rootFolders.Any(x => x.Key.Equals(folderId))) return null; - var request = new RestRequest("getMusicDirectory"); + var request = new RestRequest("getMusicDirectory.view"); request.AddParameter("id", folderId); var response = SendRequest(request); @@ -800,7 +800,7 @@ public static KeyValuePair[] GetFile(string url) var baseFolderName = url.Substring(0, url.IndexOf(@"\", StringComparison.Ordinal)); - var request = new RestRequest("getMusicDirectory"); + var request = new RestRequest("getMusicDirectory.view"); request.AddParameter("id", folderId); var response = SendRequest(request); @@ -933,7 +933,7 @@ public static byte[] GetFileArtwork(string url) var id = GetCoverArtId(url); if (id != null) { - var request = new RestRequest("getCoverArt"); + var request = new RestRequest("getCoverArt.view"); request.AddParameter("id", id); bytes = DownloadData(request); } @@ -951,7 +951,7 @@ public static KeyValuePair[] GetPlaylists() _lastEx = null; var playlists = new List>(); - var request = new RestRequest("getPlaylists"); + var request = new RestRequest("getPlaylists.view"); var response = SendRequest(request); if (_serverType == SubsonicSettings.ServerType.Subsonic) @@ -994,7 +994,7 @@ public static KeyValuePair[][] GetPlaylistFiles(string id) { _lastEx = null; var files = new List[]>(); - var request = new RestRequest("getPlaylist"); + var request = new RestRequest("getPlaylist.view"); request.AddParameter("id", id); var response = SendRequest(request); @@ -1047,7 +1047,7 @@ public static void UpdateRating(string id, string rating) if (string.IsNullOrEmpty(rating)) return; int.TryParse(rating, out var result); - var request = new RestRequest("setRating"); + var request = new RestRequest("setRating.view"); request.AddParameter("id", id); request.AddParameter("rating", result); SendRequest(request); @@ -1067,7 +1067,7 @@ public static void UpdateRatingLove(string id, string starred) public static void CreatePlaylist(string name, List songIds) { //TODO - var request = new RestRequest("createPlaylist"); + var request = new RestRequest("createPlaylist.view"); request.AddParameter("name", name); foreach (var songId in songIds) request.AddParameter("songId", songId); @@ -1083,7 +1083,7 @@ public static void UpdatePlaylist(int playlistId, string name, List songIds public static void DeletePlaylist(int playlistId) { //TODO - var request = new RestRequest("deletePlaylist"); + var request = new RestRequest("deletePlaylist.view"); request.AddParameter("id", playlistId); SendRequest(request); }