Skip to content

Commit

Permalink
Merge branch 'release/0.4.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Feb 12, 2023
2 parents fdfb27b + c5669a2 commit 9849bc8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,6 @@
- Fix #228 : Try to fix sharing video error
- Feature: Change default docker image from dockerhub to github
## 0.4.5
- Fix #423 : Change int to string to avoid overflow exception
- Fix #423 : Change int to string to avoid overflow exception
## 0.4.6
- Fix : ck list init empty error
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Authors>Ray</Authors>
<Version>0.4.5</Version>
<Version>0.4.6</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Window系统推荐使用Docker Desktop,官方下载安装包安装。
仅支持linux系统

```
wget "https://ghproxy.com/https://raw.githubusercontent.com/RayWangQvQ/BiliBiliToolPro/feature/docker-workflow/docker/install.sh" && chmod +x insatll.sh && install.sh
wget "https://ghproxy.com/https://raw.githubusercontent.com/RayWangQvQ/BiliBiliToolPro/main/docker/install.sh" && chmod +x install.sh && ./install.sh
```

## 3. 方式二:手动Docker Compose
Expand Down
14 changes: 9 additions & 5 deletions docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
###
# @Author: Ray [email protected]
# @Date: 2023-02-11 23:13:19
# @LastEditors: Ray [email protected]
# @LastEditTime: 2023-02-12 18:30:10
# @LastEditors: Ray [email protected]
# @LastEditTime: 2023-02-12 20:18:04
# @FilePath: \BiliBiliToolPro\docker\install.sh
# @Description:
###
Expand Down Expand Up @@ -34,10 +34,11 @@ base_dir="/bili"
remote_compose_url="${githubProxy}https://raw.githubusercontent.com/RayWangQvQ/BiliBiliToolPro/main/docker/sample/docker-compose.yml"
remote_config_url="${githubProxy}https://raw.githubusercontent.com/RayWangQvQ/BiliBiliToolPro/main/src/Ray.BiliBiliTool.Console/appsettings.json"
remote_ckJson_url="${githubProxy}https://raw.githubusercontent.com/RayWangQvQ/BiliBiliToolPro/main/docker/sample/cookies.json"
docker_img_name="ghcr.io/raywangqvq/bilibili_tool_pro"

createBaseDir() {
eval $invocation
[ -f $base_dir ] || mkdir $base_dir
mkdir -p $base_dir
cd $base_dir
}

Expand Down Expand Up @@ -82,18 +83,21 @@ downloadResources() {

runContainer() {
eval $invocation

say_info "开始拉取镜像"
docker pull $docker_img_name

say_info "开始运行容器"
{
docker compose version && docker compose up -d
} || {
docker-compose version && docker-compose up -d
} || {
docker pull zai7lou/bilibili_tool_pro
docker run -d --name="bili" \
-v $base_dir/Logs:/app/Logs \
-v $base_dir/appsettings.json:/app/appsettings.json \
-v $base_dir/cookies.json:/app/cookies.json \
ghcr.io/raywangqvq/bilibili_tool_pro
$docker_img_name
} || {
say_err "创建容器失败,请检查"
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static IServiceCollection AddBiliBiliClientApi(this IServiceCollection se
if (!string.IsNullOrWhiteSpace(old)) list.Add(old);

var configList = config.GetSection("BiliBiliCookies")
.Get<List<string>>()
.Get<List<string>>() ?? new List<string>()
.Where(x => !string.IsNullOrWhiteSpace(x))
.ToList();
list.AddRange(configList);
Expand Down Expand Up @@ -75,7 +75,7 @@ public static IServiceCollection AddBiliBiliClientApi(this IServiceCollection se
services.AddBiliBiliClientApi<ILiveTraceApi>("https://live-trace.bilibili.com");

//qinglong
var qinglongHost = configuration["QL_URL"]?? "http://localhost:5600";
var qinglongHost = configuration["QL_URL"] ?? "http://localhost:5600";
services
.AddHttpApi<IQingLongApi>(o =>
{
Expand Down

0 comments on commit 9849bc8

Please sign in to comment.