We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3409ce2 commit bbd262cCopy full SHA for bbd262c
1 file changed
RomM.cs
@@ -14,6 +14,7 @@
14
using System.Reflection;
15
using System.Linq;
16
using Newtonsoft.Json;
17
+using Newtonsoft.Json.Linq;
18
using RomM.Settings;
19
using Playnite.SDK.Events;
20
using RomM.Games;
@@ -277,7 +278,8 @@ public override IEnumerable<GameMetadata> GetGames(LibraryGetGamesArgs args)
277
278
using (StreamReader reader = new StreamReader(body))
279
using (JsonTextReader jsonReader = new JsonTextReader(reader))
280
{
- roms = JsonSerializerSingleton.Instance.Deserialize<List<RomMRom>>(jsonReader);
281
+ var jsonResponse = JObject.Parse(reader.ReadToEnd());
282
+ roms = jsonResponse["items"].ToObject<List<RomMRom>>();
283
}
284
285
Logger.Debug($"Finished parsing response for {apiPlatform.Name}.");
0 commit comments