DzenanJupic / rustube

A YouTube video downloader, originally inspired by pytube, written in Rust.
Apache License 2.0
227 stars 41 forks source link

403: Forbidden when trying to download any video #73

Open jakubslaby09 opened 4 months ago

jakubslaby09 commented 4 months ago

Summary

I am unable to download any video with rustube, since youtube always returns 403

Video IDs

DB7rUoN7ES8 Ub_NI1lCrdA mBA31Jr1THc c13gpBrnGEw

Version

rustube 0.6.0

Log output or error

log ```rust reqwest::Error { kind: Status(403), url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("rr3---sn-2gb7sn7y.googlevideo.com")), port: None, path: "/videoplayback", query: Some("expire=1719070626&ei=Qpt2ZobyKoO56dsPx7KAiAU&ip=185.167.209.67&id=o-ALf2FLXpwBC-hU8SCzlRF2zhA2QNimpEr4sgNqqup8v3&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Et&mm=31%2C26&mn=sn-2gb7sn7y%2Csn-4g5lzner&ms=au%2Conr&mv=m&mvi=3&pl=22&gcr=cz&initcwndbps=1346250&bui=AbKP-1P5pMnlEmTMja0b4_H_n-YhqDptRj9Mjnts0jUAvV_gHnulTWP2hbHDaLQWnhJpIuwmC0NCyoaf&spc=UWF9f_BrJ_4Y8TFca0WBuHlMzS7F4sxUiVb_3wV1HLz8deGtLDkRQIOXc0jH&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=gApVCO3OfPx1vzJ7mX0fRoYQ&rqh=1&gir=yes&clen=4401953&dur=266.281&lmt=1714541503865233&mt=1719048541&fvip=1&keepalive=yes&c=WEB&sefc=1&txp=5432434&n=yIVU8ecpD_Ldxwibol&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHlkHjAwRgIhAOYbBvRD9pj03CnIID3vjQA_7dEVVrJUOw1rGxI1pDcBAiEA8ZteVvV6S4hzNDtZ2uLxpBsVrHwMTThvXaX8whBiwg4%3D&sig=AJfQdSswRQIhAOJMwsUni1zk6oQe0AccL-hu0ear5uW8T-cmeXkw4K-PAiB7M_3URord44sLdPKT8xxrbPyLudCVNjf60_FjCx4Z_g%3D%3D"), fragment: None } } ```

Additional notes or ideas

No response

thedtvn commented 3 months ago

https://github.com/ytdl-org/youtube-dl/issues/32815

https://github.com/ytdl-org/youtube-dl/pull/32820/files#diff-d64df7f8209b00a6f337bba53eb0a8a5a237c35f2cc0ea70f793cc4fbec4a8ce

look like I found how to fix it

i1Fury commented 2 days ago

are there any plans to implement this?