Skip to content

Commit

Permalink
取消给关注up的视频动态中的文章投蕉点赞弹幕
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuweitung committed Apr 21, 2021
1 parent df6f9df commit 8bc729c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@
<img src="https://gitee.com/zhuweitung/picbed/raw/master/20210419211126.png" style="display:inline-block"/>

6. 使用Turbo版Server酱推送说明
+ 前往[sct.ftqq.com](https://sct.ftqq.com/sendkey)点击登入,创建账号。
+ 点击点[SendKey](https://sct.ftqq.com/sendkey),生成一个`Key`。将其增加到`Github Secrets`中,变量名为`SERVERPUSHKEY`
+ [配置消息通道](https://sct.ftqq.com/forward),选择方糖服务号,保存即可。


+ 前往[sct.ftqq.com](https://sct.ftqq.com/sendkey)点击登入,创建账号。

+ 点击点[SendKey](https://sct.ftqq.com/sendkey),生成一个`Key`。将其增加到`Github Secrets`中,变量名为`SERVERPUSHKEY`

+ [配置消息通道](https://sct.ftqq.com/forward),选择方糖服务号,保存即可。

7. Fork仓库后,GitHub Actions默认不自动执行任务,需要有commit记录才会激活,最简单就是修改readme.md,在文末添加空行提交,这样自动执行定时任务就激活了

## 配置说明
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.zhuweitung</groupId>
<artifactId>banana-helper</artifactId>
<version>0.2.2</version>
<version>0.2.4</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/zhuweitung/api/AcFunApiHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ private static List<VideoBase> getTrendVideos() {
if (CollectionUtils.isNotEmpty(list)) {
list.forEach(videoTrend -> {
VideoBase videoBase = videoTrend.parse2VideoBase();
if (videoBase.getCreateTime() > minTime) {
//过滤文章动态和24小时外视频
if (videoBase.getType().equals(2) && videoBase.getCreateTime() > minTime) {
trendVideos.add(videoBase);
if (videoBase.getIsThrowBanana()) {
throwBananaedList.add(videoBase.getAc());
Expand Down

0 comments on commit 8bc729c

Please sign in to comment.