Compare commits

...

3 commits

Author SHA1 Message Date
eecc689ae0
ci: use warpproxy to circumvent ip-ban
Some checks failed
CI / Test (push) Failing after 35s
2024-08-13 03:42:31 +02:00
da39c64f30
fix: detect ip-ban error message 2024-08-10 16:26:43 +02:00
f37432a48c
fix: use native tls by default for CLI 2024-08-10 14:12:39 +02:00
4 changed files with 13 additions and 3 deletions

View file

@ -7,6 +7,16 @@ on:
jobs:
Test:
runs-on: cimaster-latest
services:
warpproxy:
image: thetadev256/warpproxy
env:
WARP_DEVICE_ID: ${{ secrets.WARP_DEVICE_ID }}
WARP_ACCESS_TOKEN: ${{ secrets.WARP_ACCESS_TOKEN }}
WARP_LICENSE_KEY: ${{ secrets.WARP_LICENSE_KEY }}
WARP_PRIVATE_KEY: ${{ secrets.WARP_PRIVATE_KEY }}
env:
ALL_PROXY: "http://warpproxy:8124"
steps:
- name: 📦 Checkout repository
uses: actions/checkout@v4

View file

@ -11,7 +11,7 @@ categories.workspace = true
description = "CLI for RustyPipe - download videos and extract data from YouTube / YouTube Music"
[features]
default = ["rustls-tls-native-roots"]
default = ["native-tls"]
# Reqwest TLS options
native-tls = [

View file

@ -519,8 +519,7 @@ impl std::io::Write for ProgWriter {
#[tokio::main]
async fn main() {
if let Err(e) = run().await {
println!("{}", "Error:".red().bold());
println!("{}", e);
println!("{} {}", "Error:".red().bold(), e);
std::process::exit(1);
}
}

View file

@ -221,6 +221,7 @@ impl MapResponse<VideoPlayer> for response::Player {
.find_map(|word| match word {
"age" | "inappropriate" => Some(UnavailabilityReason::AgeRestricted),
"private" => Some(UnavailabilityReason::Private),
"bot" => Some(UnavailabilityReason::IpBan),
_ => None,
})
.unwrap_or_default();