Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Jun 7, 2024
1 parent a491830 commit 5577531
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/emby/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ public static void main(String[] args) {
log.info("Webhooks = {}", req.getBody());
try {
JsonObject jsonObject = gson.fromJson(req.getBody(), JsonObject.class);
JsonObject item = jsonObject.get("Item").getAsJsonObject();
JsonElement item = jsonObject.get("Item");
if (Objects.nonNull(item)) {
ThreadUtil.execute(() -> pinyin(item));
JsonObject itemAsJsonObject = item.getAsJsonObject();
ThreadUtil.execute(() -> pinyin(itemAsJsonObject));
}
} catch (Exception e) {
log.error(e);
Expand Down

0 comments on commit 5577531

Please sign in to comment.