From 1e6655241ba5d18a7b4d595660e457695b82f7ea Mon Sep 17 00:00:00 2001 From: xfangfang <2553041586@qq.com> Date: Thu, 14 Dec 2023 10:32:18 +0800 Subject: [PATCH] Show hint on supporter-only video --- wiliwili/source/main.cpp | 3 ++- wiliwili/source/presenter/video_detail.cpp | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wiliwili/source/main.cpp b/wiliwili/source/main.cpp index 2ef6179e..113f12e5 100644 --- a/wiliwili/source/main.cpp +++ b/wiliwili/source/main.cpp @@ -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 diff --git a/wiliwili/source/presenter/video_detail.cpp b/wiliwili/source/presenter/video_detail.cpp index 0b7e584e..c6995c7a 100644 --- a/wiliwili/source/presenter/video_detail.cpp +++ b/wiliwili/source/presenter/video_detail.cpp @@ -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); + } }); }); // 请求当前视频在线人数