Skip to content

Commit

Permalink
Show hint on supporter-only video
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Dec 14, 2023
1 parent be3e58b commit 1e66552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wiliwili/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ int main(int argc, char* argv[]) {
// Uncomment these lines to debug activities
// Intent::openBV("BV1Da411Y7U4"); // 弹幕防遮挡 (横屏)
// Intent::openBV("BV1iN4y1m7J3"); // 弹幕防遮挡 (竖屏)
// Intent::openBV("BV18W4y1q72C"); // wiliwili介绍
// Intent::openBV("BV1zb4y1j7vz"); // flv 模式报错:HTTP 424
// Intent::openBV("BV1jL41167ZG"); // 充电视频
// Intent::openBV("BV1dx411c7Av"); // flv拼接视频
// Intent::openBV("BV15z4y1Z734"); // 4K HDR 视频
// Intent::openBV("BV1qM4y1w716"); // 8K
Expand Down
6 changes: 5 additions & 1 deletion wiliwili/source/presenter/video_detail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ void VideoDetail::requestVideoUrl(std::string bvid, int cid,
brls::Logger::error("{}", error);
brls::sync([ASYNC_TOKEN, error]() {
ASYNC_RELEASE
this->onError("请求视频地址失败\n" + error);
if(error == "87007") {
this->onError("该视频为「充电」专属视频");
} else {
this->onError("请求视频地址失败\n" + error);
}
});
});
// 请求当前视频在线人数
Expand Down

0 comments on commit 1e66552

Please sign in to comment.