Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hguandl committed Jul 14, 2023
2 parents da782ea + 2787fd3 commit 9af79e2
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
build: [x86_64-linux, x86_64-linux-musl, aarch64-linux, arm-linux, x86_64-macos, x86_64-windows, aarch64-macos] #, x86_64-win-gnu, win32-msvc
include:
- build: x86_64-linux
os: ubuntu-18.04
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
cross: false
Expand All @@ -34,12 +34,12 @@ jobs:
target: x86_64-unknown-linux-musl
cross: true
- build: aarch64-linux
os: ubuntu-18.04
os: ubuntu-latest
rust: stable
target: aarch64-unknown-linux-gnu
cross: true
- build: arm-linux
os: ubuntu-18.04
os: ubuntu-latest
rust: stable
target: arm-unknown-linux-gnueabi
cross: true
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ OPTIONS:
-h, --help Print help information
--interactive <INTERACTIVE> [default: 0]
-l, --line <LINE> 选择上传线路 [possible values: bda2, ws, qn, kodo, cos, cos-
internal]
internal, bldsa]
--limit <LIMIT> 单视频文件最大并发数 [default: 3]
--mission-id <MISSION_ID>
--no-reprint <NO_REPRINT> 自制声明, 0-允许转载,1-禁止转载 [default: 0]
Expand Down
4 changes: 2 additions & 2 deletions crates/biliup/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "biliup"
version = "0.1.15"
version = "0.1.16"
edition = "2021"
description = "Upload video to bilibili."
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -87,4 +87,4 @@ openssl = { version = "0.10.42", features = ["vendored"] }

[build-dependencies]
native-tls = { version = "0.2.11", features = ["vendored"] }
openssl = { version = "0.10.42", features = ["vendored"] }
openssl = { version = "0.10.42", features = ["vendored"] }
9 changes: 9 additions & 0 deletions crates/biliup/src/uploader/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,12 @@ pub fn cos_internal() -> Line {
cost: 0,
}
}

pub fn bldsa() -> Line {
Line {
os: Uploader::Upos,
query: "upcdn=bldsa&probe_version=20211012".into(),
probe_url: "//upos-cs-upcdnbldsa.bilivideo.com/OK".into(),
cost: 0,
}
}
1 change: 1 addition & 0 deletions crates/bin/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pub enum UploadLine {
Kodo,
Cos,
CosInternal,
Bldsa,
}

fn human_size(s: &str) -> Result<u64, String> {
Expand Down
1 change: 1 addition & 0 deletions crates/bin/uploader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ pub async fn upload(
Some(UploadLine::Qn) => line::qn(),
Some(UploadLine::Cos) => line::cos(),
Some(UploadLine::CosInternal) => line::cos_internal(),
Some(UploadLine::Bldsa) => line::bldsa(),
None => Probe::probe(&client.client).await.unwrap_or_default(),
};
// let line = line::kodo();
Expand Down
2 changes: 1 addition & 1 deletion crates/stream-gears/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stream-gears"
version = "0.1.15"
version = "0.1.16"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 2 additions & 0 deletions crates/stream-gears/src/uploader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub enum UploadLine {
Kodo,
Cos,
CosInternal,
Bldsa,
}

#[derive(FromPyObject)]
Expand Down Expand Up @@ -74,6 +75,7 @@ pub async fn upload(
Some(UploadLine::Qn) => line::qn(),
Some(UploadLine::Cos) => line::cos(),
Some(UploadLine::CosInternal) => line::cos_internal(),
Some(UploadLine::Bldsa) => line::bldsa(),
None => Probe::probe(&client.client).await.unwrap_or_default(),
};
// let line = line::kodo();
Expand Down

0 comments on commit 9af79e2

Please sign in to comment.