Mithronn / rusty_ytdl

A Rust library for Youtube video searcher and downloader
https://docs.rs/rusty_ytdl
MIT License
107 stars 20 forks source link

Status 403 Error on executing example #49

Open morganhiggin2 opened 1 week ago

morganhiggin2 commented 1 week ago

Upon executing the example: `use rusty_ytdl::*;

[tokio::main]

async fn main() { let url = "https://www.youtube.com/watch?v=FZ8BxMU3BYc";

let video = Video::new(url).unwrap();

let path = std::path::Path::new(r"test.mp3");

video.download(path).await.unwrap();

}`

I get the following error calledResult::unwrap()on anErrvalue: Reqwest(reqwest::Error { kind: Status(403), url: "https://rr5---sn-a5msenle.googlevideo.com/videoplayback?expire=1731314716&ei=vG8xZ4joMMSpsfIPjLKjQA&ip=2600%3A8800%3Aa980%3A1f%3A7d29%3A3e%3Ad670%3A2cf5&id=o-AJQrCQ5U0Uv7MQCyyXMKeOHSQEXbolRD1DbKl5kQ-t08&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1731293116%2C&mh=0_&mm=31%2C29&mn=sn-a5msenle%2Csn-2imeyn7k&ms=au%2Crdu&mv=m&mvi=5&pl=41&rms=au%2Cau&initcwndbps=3992500&bui=AQn3pFTSRwHHkLPhXe4NMDCPyznREnWIa7AdwN_tgFoLyYXqITI2YOiMCCZ1vSY-UbEIvPXs5a_0PuQa&spc=qtApAUlw6X64ZYnHNciDCIb3NtH1MBCZRUNBEzgSdsI7pLaWODJnAM_PCHLF&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=-qUpMCVZmMbuYm_zEOPIyl8Q&rqh=1&gir=yes&clen=3213150&dur=192.061&lmt=1714645872476603&mt=1731292863&fvip=4&keepalive=yes&fexp=51312688%2C51326932&c=WEB&sefc=1&txp=4502434&n=Orjl1PRGnSY4Og&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=AGluJ3MwRQIgCD5pwwmuOVU6_Q1au0o0E9gQdxmN5OHwdX37eP_pweECIQDK_wMIP_h9EcCHNMvUHKqVsGNptAVXzgp3WcabK58hOw%3D%3D&sig=AJfQdSswRQIhAJDnMe-TZYtwzGukFyLrpRxQuvs7R6HCd4oo12q5g-2_AiA698T_t6naL0oz6-7Posc1rADtAmyu6uF984rdMynrog%3D%3D" })

Could this be due to a google api update? Could this be related? https://github.com/DzenanJupic/rustube/issues/73 And is anyone else able to replicate the issue?

imjord commented 1 week ago

getting same issue with the download example code

kitalia commented 6 days ago

Same here