Changes to be committed:

modified:   .gitignore
	modified:   chopperbot-common/pom.xml
	modified:   chopperbot-common/src/main/java/org/example/constpool/ConstPool.java
	modified:   chopperbot-live/src/main/java/org/example/core/component/SimpleRequest.java
	modified:   chopperbot-live/src/main/java/org/example/core/creeper/loadtask/DouyuRecordListLoadTask.java
	modified:   chopperbot-live/src/main/java/org/example/core/factory/LiveTaskFactory.java
	modified:   chopperbot-live/src/main/java/org/example/core/parser/impl/BilibiliFlvUrlParser.java
	modified:   chopperbot-live/src/main/java/org/example/core/parser/impl/DouyuFlvUrlParser.java
	modified:   chopperbot-live/src/main/java/org/example/core/parser/impl/HuyaFlvUrlParser.java

 Untracked files:
	chopperbot-common/src/main/java/org/example/util/HttpClientUtil.java
	chopperbot-common/src/main/java/org/example/util/RegexUtil.java
	chopperbot-live/src/main/java/org/example/core/creeper/loadconfig/DouyinLiveOnlineConfig.java
	chopperbot-live/src/main/java/org/example/core/parser/impl/DouyinFlvUrlParser.java
This commit is contained in:
Klein
2024-05-19 17:50:53 +08:00
parent 3ed4f61d10
commit a2e0563992
9 changed files with 31 additions and 23 deletions
+11 -9
View File
@@ -1,13 +1,15 @@
# Project exclude paths
/console/target/
/common/target/
/HotModule/target/
/FileModule/target/
/BarrageModule/target/
/SectionModule/target/
/SectionWorkModule/target/
/PublishModule/target/
/LiveRecordModule/target/
/chopperbot-console/target/
/chopperbot-account/target/
/chopperbot-creeper/target/
/chopperbot-common/target/
/chopperbot-hot/target/
/chopperbot-file/target/
/chopperbot-barrage/target/
/chopperbot-section/target/
/chopperbot-section-work/target/
/chopperbot-publish/target/
/chopperbot-live/target/
/doc/docs/.vuepress/dist/
/CreeperModule/target/
/config/
+8
View File
@@ -79,5 +79,13 @@
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
</dependencies>
</project>
@@ -34,7 +34,7 @@ public class ConstPool {
DOUYU("douyu"),
HUYA("huya"),
BILIBILI("bilibili"),
DOUYING("douyin"),
DOUYIN("douyin"),
TIKTOK("tiktok"),
TWITCH("twitch");
private final String name;
@@ -48,7 +48,7 @@ public class ConstPool {
}
public static final String DOUYU = "douyu";
public static final String DOUYIN = "douyin";
public static final String HUYA = "huya";
public static final String BILIBILI = "bilibili";
@@ -6,7 +6,7 @@ import com.alibaba.fastjson.JSONObject;
import org.example.pojo.record.RecordDayEntry;
import org.example.pojo.record.RecordEntry;
import org.example.pojo.record.RecordList;
import org.example.utils.HttpClientUtil;
import org.example.util.HttpClientUtil;
import java.util.ArrayList;
import java.util.List;
@@ -10,7 +10,7 @@ import org.example.core.loadtask.LoadTask;
import org.example.pojo.record.RecordDayEntry;
import org.example.pojo.record.RecordEntry;
import org.example.pojo.record.RecordList;
import org.example.utils.HttpClientUtil;
import org.example.util.HttpClientUtil;
import java.time.LocalDate;
import java.util.ArrayList;
@@ -1,12 +1,10 @@
package org.example.core.factory;
import org.example.core.creeper.loadconfig.BilibiliLiveOnlineConfig;
import org.example.core.creeper.loadconfig.DouyuLiveOnlineConfig;
import org.example.core.creeper.loadconfig.HuyaLiveOnlineConfig;
import org.example.core.creeper.loadconfig.LoadLiveConfig;
import org.example.core.creeper.loadconfig.*;
import org.example.core.parser.PlatformVideoUrlParser;
import org.example.core.parser.impl.BilibiliFlvUrlParser;
import org.example.core.component.LiveStreamTask;
import org.example.core.parser.impl.DouyinFlvUrlParser;
import org.example.core.parser.impl.DouyuFlvUrlParser;
import org.example.core.parser.impl.HuyaFlvUrlParser;
@@ -23,7 +21,8 @@ public class LiveTaskFactory {
private final Map<Class<? extends LoadLiveConfig>, PlatformVideoUrlParser> parserMap = Map.of(
BilibiliLiveOnlineConfig.class,new BilibiliFlvUrlParser(),
DouyuLiveOnlineConfig.class, new DouyuFlvUrlParser(),
HuyaLiveOnlineConfig.class, new HuyaFlvUrlParser()
HuyaLiveOnlineConfig.class, new HuyaFlvUrlParser(),
DouyinLiveOnlineConfig.class, new DouyinFlvUrlParser()
);
public LiveTaskFactory() {
@@ -2,7 +2,7 @@ package org.example.core.parser.impl;
import org.example.core.creeper.loadconfig.BilibiliLiveOnlineConfig;
import org.example.core.parser.PlatformVideoUrlParser;
import org.example.utils.HttpClientUtil;
import org.example.util.HttpClientUtil;
import org.json.JSONArray;
import org.json.JSONObject;
@@ -3,8 +3,8 @@ package org.example.core.parser.impl;
import org.apache.commons.codec.digest.DigestUtils;
import org.example.core.creeper.loadconfig.DouyuLiveOnlineConfig;
import org.example.core.parser.PlatformVideoUrlParser;
import org.example.utils.HttpClientUtil;
import org.example.utils.RegexUtil;
import org.example.util.RegexUtil;
import org.example.util.HttpClientUtil;
import org.json.JSONObject;
import javax.script.Invocable;
@@ -10,8 +10,7 @@ import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.example.core.creeper.loadconfig.HuyaLiveOnlineConfig;
import org.example.core.parser.PlatformVideoUrlParser;
import org.example.utils.HttpClientUtil;
import org.example.utils.RegexUtil;
import org.example.util.HttpClientUtil;
import org.json.JSONArray;
import org.json.JSONObject;