From 177c91c3705c80d87ccbb2d2cd5f3b9764a56c70 Mon Sep 17 00:00:00 2001 From: yutou <583819556@qq.com> Date: Mon, 8 Jan 2024 10:46:23 +0800 Subject: [PATCH] update --- .../yutou/qqbot/bilibili/BiliBiliManga.java | 3 +- .../com/yutou/qqbot/data/bili/EPInfo.java | 50 +++++++++++++++++++ .../qqbot/models/BiliBili/BiliVideo.java | 3 +- 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/yutou/qqbot/data/bili/EPInfo.java diff --git a/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java b/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java index 0ed25cb..3ec948e 100644 --- a/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java +++ b/src/main/java/com/yutou/qqbot/bilibili/BiliBiliManga.java @@ -160,7 +160,8 @@ public class BiliBiliManga { } public static void main(String[] args) { - System.out.println(BiliBiliManga.sign()); + // System.out.println(BiliBiliManga.sign()); + BiliBiliUtils.getInstance(583819556L).sendLiveDanmu(33989,"学学这个"); } @Data diff --git a/src/main/java/com/yutou/qqbot/data/bili/EPInfo.java b/src/main/java/com/yutou/qqbot/data/bili/EPInfo.java new file mode 100644 index 0000000..c08db2c --- /dev/null +++ b/src/main/java/com/yutou/qqbot/data/bili/EPInfo.java @@ -0,0 +1,50 @@ +package com.yutou.qqbot.data.bili; + +import lombok.Data; + +@Data +public class EPInfo { + private int code; + private String message; + private MediaResult result; + + @Data + public static class MediaResult { + private Media media; + + // getters and setters + } + + @Data + public static class Media { + private String cover; + private String horizontal_picture; + private int media_id; + private NewEp new_ep; + private Rating rating; + private int season_id; + private String share_url; + private String title; + private int type; + private String type_name; + + // getters and setters + } + + @Data + public static class NewEp { + private int id; + private String index; + private String index_show; + + // getters and setters + } + + @Data + public static class Rating { + private int count; + private double score; + + // getters and setters + } +} diff --git a/src/main/java/com/yutou/qqbot/models/BiliBili/BiliVideo.java b/src/main/java/com/yutou/qqbot/models/BiliBili/BiliVideo.java index 13091a3..1a1fb50 100644 --- a/src/main/java/com/yutou/qqbot/models/BiliBili/BiliVideo.java +++ b/src/main/java/com/yutou/qqbot/models/BiliBili/BiliVideo.java @@ -366,7 +366,7 @@ public class BiliVideo extends Model { //video.downVideo("https://www.bilibili.com/video/BV1qF411T7Vf?spm_id_from=444.41.list.card_archive.click"); //唐诱正片 //video.downVideo("https://www.bilibili.com/video/BV1L44y147zR?spm_id_from=333.999.0.0");// ep1 - video.downVideo("https://www.bilibili.com/video/BV1Zu4y1B7DU/?spm_id_from=333.337.search-card.all.click", true, false);// ep5 + //video.downVideo("https://www.bilibili`.com/video/BV1Zu4y1B7DU/?spm_id_from=333.337.search-card.all.click", true, false);// ep5 // video.downVideo("https://www.bilibili.com/video/BV1SL411g7FS/?spm_id_from=333.788.recommend_more_video.0"); //all ig 1\5 // video.downVideo("https://www.bilibili.com/video/BV18L4y1H7rz?spm_id_from=333.999.0.0"); @@ -374,6 +374,7 @@ public class BiliVideo extends Model { // int a=16|2048; // System.out.println("a = " + a); //video.downDanmu(428855000L,976216102L,"【都市_情感】《唐可可的诱惑》第一集",1); + video.downVideo("https://www.bilibili.com/bangumi/play/ep776259", false, false);// ep5 System.out.println("事件结束"); } }