From 5a4ff41984649f8fe39669836acd27c8dfbebbea Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Sun, 20 Feb 2022 12:45:41 +0100 Subject: [PATCH] Fix reading of MVLiveModels from config --- common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java b/common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java index f24281ed..25ecb945 100644 --- a/common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java +++ b/common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java @@ -250,7 +250,10 @@ public class MVLiveModel extends AbstractModel { @Override public void readSiteSpecificData(JsonReader reader) throws IOException { - id = reader.nextString(); + if (reader.hasNext()) { + reader.nextName(); + id = reader.nextString(); + } } public void setId(String id) {