Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
1.修复直播查询接口(叔叔改了接口,陈睿柠檬什么时候熟啊);2.更新README;3.更新CMakeList.txt,添加Spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
skykeyjoker committed Mar 9, 2022
1 parent 8624d5c commit c4b6187
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

注:本插件为控制台程序(Console Application),无界面无托盘。可以通过查询`ASoulNotification.exe`进程检查插件运行状态。

注:叔叔有风控系统,有时同一局域网请求过多,即使是5s一次查询也会被掐。插件出错6次自动退出后,可以自行前往`logs`文件夹内的日志文件验证是否为这种情况(一般错误提示是远程关闭了访问)。此时可以**等待半小时左右**重新开启插件。

[功能介绍](#功能介绍)|[使用教程](#使用教程)|[下载地址](#下载地址)|[友情链接](#友情链接)

## 功能介绍
Expand Down
2 changes: 2 additions & 0 deletions src/BilibiliMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ BilibiliLiveCard BiliBiliMessage::liveQuery(const QString& url)
title = QString::fromStdString(doc["data"]["live_room"]["title"].get<std::string>());
nickname = QString::fromStdString(doc["data"]["name"].get<std::string>());
liveurl = QString::fromStdString(doc["data"]["live_room"]["url"].get<std::string>());
// Fuck You Bilibili, live room url TRAITS https://live.bilibili.com/22625027?broadcast_type=0\u0026is_room_feed=1
liveurl = liveurl.mid(0, liveurl.indexOf('?'));
}
catch (...)
{
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
project ("ASoulNotification")

find_package(Qt5 COMPONENTS Core Network)
find_package(spdlog CONFIG REQUIRED)
include_directories(${CMAKE_CURRENT_LIST_DIR}/3rd)

set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/logo.rc")

add_executable (ASoulNotification ${APP_ICON_RESOURCE_WINDOWS} "ASoulNotification.cpp" "BilibiliMessage.h" "BilibiliMessage.cpp" "Essential.h" "3rd/json.hpp" "3rd/wintoastlib.h" "3rd/wintoastlib.cpp")

target_link_libraries(ASoulNotification Qt5::Core Qt5::Network)
target_link_libraries(ASoulNotification Qt5::Core Qt5::Network spdlog_header_only)

4 changes: 4 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"versions": [
{
"version": "v2.1.0",
"url": "https://github.com/skykeyjoker/A-Soul-Notification/releases/tag/v2.1.0"
},
{
"version": "v2.0.0",
"url": "https://github.com/skykeyjoker/A-Soul-Notification/releases/tag/v2.0.0"
Expand Down

0 comments on commit c4b6187

Please sign in to comment.