diff --git a/Cargo.lock b/Cargo.lock index 102e2f3..c8e911a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -498,6 +498,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.3.0+3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eba8804a1c5765b18c4b3f907e6897ebabeedebc9830e1a0046c4a4cf44663e1" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.102" @@ -506,6 +515,7 @@ checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] @@ -760,9 +770,10 @@ dependencies = [ [[package]] name = "tcobalt" -version = "1.2.0" +version = "1.2.1" dependencies = [ "futures", + "openssl", "reqwest", "tokio", ] diff --git a/Cargo.toml b/Cargo.toml index 59067ab..46f95e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tcobalt" -version = "1.2.0" +version = "1.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -10,6 +10,9 @@ futures = { version = "0.3.30", default-features = false, features = ["alloc"] } reqwest = "0.11.26" tokio = { version = "1.37.0", default-features = false, features = ["rt-multi-thread", "macros", "fs"] } +[target.'cfg(target_arch = "aarch64")'.dependencies] +openssl = { version = "0.10.29", features = ["vendored"] } + [profile.release] opt-level = "s" lto = true diff --git a/Makefile b/Makefile index 6ea48b5..9ee38a7 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,15 @@ debug: cargo fetch --locked --target "$$(rustc -vV | sed -n 's/host: //p')" cargo build --frozen --all-features +arm: + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + + cargo fetch --locked --target aarch64-unknown-linux-gnu + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc \ + cargo build --frozen --all-features --target aarch64-unknown-linux-gnu --release + + release: tcobalt install: diff --git a/src/strings/info.txt b/src/strings/info.txt index 2ac13c7..bde27a8 100644 --- a/src/strings/info.txt +++ b/src/strings/info.txt @@ -8,7 +8,7 @@ The code and license is available at https://github.com/khyerdev/tcobalt [supported] bilibili.com & bilibili.tv dailymotion videos -instagram reels, posts & stories +instagram reels, posts & stories (rarely works) ok video (full video+audio only) pinterest videos & stories reddit videos & gifs @@ -37,13 +37,14 @@ tt-h265 = false dublang = none no-metadata = false fname-style = classic -instance = co.wuk.sh +instance = api.cobalt.tools \[default.instances] -co.wuk.sh -co-api.mae.wtf +api.cobalt.tools +capi.oak.li co.eepy.today co.tskau.team cobalt.wither.ing cobalt.canine.tools - +wukko.wolfdo.gg +cobalt.misike.eu diff --git a/src/version b/src/version index 79127d8..6a5e98a 100644 --- a/src/version +++ b/src/version @@ -1 +1 @@ -v1.2.0 +v1.2.1