You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Im trying download livestream videos, but dont work.
I using example but with livestream URL
#[tokio::test]
async fn download_with_chunks() {
use rusty_ytdl::{Video, VideoOptions, VideoQuality};
let url = "https://www.youtube.com/watch?v=jGNJYCcz-NA";
let video_options = VideoOptions {
quality: VideoQuality::Highest,
..Default::default()
};
let video = Video::new_with_options(url, video_options).unwrap();
let stream = video.stream().await.unwrap();
while let Some(chunk) = stream.chunk().await.unwrap() {
println!("{} byte downloaded", chunk.len());
}
}
Error:
called Result::unwrap() on an Err value: Reqwest(reqwest::Error { kind: Status(403), url: "https://rr4---sn-bg0s7nls.googlevideo.com/videoplayback?expire=1740772084&ei=lL7BZ6bmHsqR-LAPqOqS0Q8&ip=200.150.131.228&id=o-AKhoAgtn_842t9K03JKOaKJ863IoiFRu0fBR5AQXu-6D&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1740750484%2C&mh=KG&mm=31%2C26&mn=sn-bg0s7nls%2Csn-gpv7ynes&ms=au%2Conr&mv=m&mvi=4&pl=24&rms=au%2Cau&initcwndbps=1188750&bui=AUWDL3y__pRJm8rS7gxEHVwCTr0szxl9wGPYjmZz_lN1K90qdOE5hDCJa-Mf9IF9v0PbsZuuDj6xh0r9&spc=RjZbSeWXTeI0eLMBiwnDGakv9QqPEhLgh9iBUlem4xGDsGKK4N5SWNRqUyhdWMbQyB4b5fw&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=KRjDAcdxrIOuajvyVtHQqKgQ&rqh=1&gir=yes&clen=96636867&dur=6877.441&lmt=1740710641795475&mt=1740750084&fvip=5&keepalive=yes&fexp=51326932%2C51355912%2C51411872&c=WEB&sefc=1&txp=7208224&n=0GVNc1d6UU0hg6Ho7&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=AFVRHeAwRQIhAJcRRoMeitO7p2ax5uHJmyahdpbuz3YegiEwT4XELng_AiAzPkNfszJcqyF_TGtJzPZpvqekzrHnqRBjt9xE9gCw2w%3D%3D" })
I did this test in the original repository itself using the examples, so the library is in the most up-to-date version.
The text was updated successfully, but these errors were encountered:
Hi! Im trying download livestream videos, but dont work.
I using example but with livestream URL
Error:
called
Result::unwrap()
on anErr
value: Reqwest(reqwest::Error { kind: Status(403), url: "https://rr4---sn-bg0s7nls.googlevideo.com/videoplayback?expire=1740772084&ei=lL7BZ6bmHsqR-LAPqOqS0Q8&ip=200.150.131.228&id=o-AKhoAgtn_842t9K03JKOaKJ863IoiFRu0fBR5AQXu-6D&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1740750484%2C&mh=KG&mm=31%2C26&mn=sn-bg0s7nls%2Csn-gpv7ynes&ms=au%2Conr&mv=m&mvi=4&pl=24&rms=au%2Cau&initcwndbps=1188750&bui=AUWDL3y__pRJm8rS7gxEHVwCTr0szxl9wGPYjmZz_lN1K90qdOE5hDCJa-Mf9IF9v0PbsZuuDj6xh0r9&spc=RjZbSeWXTeI0eLMBiwnDGakv9QqPEhLgh9iBUlem4xGDsGKK4N5SWNRqUyhdWMbQyB4b5fw&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=KRjDAcdxrIOuajvyVtHQqKgQ&rqh=1&gir=yes&clen=96636867&dur=6877.441&lmt=1740710641795475&mt=1740750084&fvip=5&keepalive=yes&fexp=51326932%2C51355912%2C51411872&c=WEB&sefc=1&txp=7208224&n=0GVNc1d6UU0hg6Ho7&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=AFVRHeAwRQIhAJcRRoMeitO7p2ax5uHJmyahdpbuz3YegiEwT4XELng_AiAzPkNfszJcqyF_TGtJzPZpvqekzrHnqRBjt9xE9gCw2w%3D%3D
" })I did this test in the original repository itself using the examples, so the library is in the most up-to-date version.
The text was updated successfully, but these errors were encountered: