pystardust / ytfzf

A posix script to find and watch youtube videos from the terminal. (Without API)
GNU General Public License v3.0
3.78k stars 343 forks source link

[BUG]: "[ffmpeg] https: HTTP error 403 Forbidden" #745

Open tabletseeker opened 3 months ago

tabletseeker commented 3 months ago

Describe the bug

ytfzf and searching/selecting any Youtube Video produces the following error:

[ffmpeg] https: HTTP error 403 Forbidden
Failed to open https://rr1---sn-5hne6nsy.googlevideo.com/videoplayback?expire=1721842338&ei=QuagZuHdLNnIp-oPu76U-Ag&ip=185.213.155.137&id=o-AHcxi6nmG6RPcyWh9IV7tRNYN8lfyYsTEOrFPnIasOWM&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=AR&mm=31%2C26&mn=sn-5hne6nsy%2Csn-4g5ednsr&ms=au%2Conr&mv=m&mvi=1&pl=24&gcr=de&initcwndbps=692500&bui=AXc671Kn9xoPCs0HMPdR2gB-tYCHWHLP3NhLpwtcoJODCTg9D0jVu1BkcMF9JvNV6YMmLOs1HYBHCYMq&spc=NO7bAY8gvZLZnUNY5011NcplrDvtlFr3SSH39X1HrjlYiMOKd9kph98wJg02&vprv=1&svpuc=1&xtags=acont%3Doriginal%3Alang%3Den&mime=audio%2Fwebm&ns=sEpHwWIYUJOWKQ8g-52xmNUQ&rqh=1&gir=yes&clen=16117851&dur=946.101&lmt=1698086488463994&mt=1721820311&fvip=5&keepalive=yes&c=WEB&sefc=1&txp=4532434&n=bN9899hHmRkRl8O&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cxtags%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgLyMMwc_XDDULOXv3Qbvj0W6SGee1y-u8oJsAB49bvCgCIEiWtj6eKvNoMbLlmjael0rFQcmotn1NJV2br5ZB7k4x&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AGtxev0wRgIhANa2ck2yt9QL50LI_Q2yPF-GD1vRH61NTY70lr4x-XLyAiEAz4SO5rObhxkKM6XTzDoUpWxfLa0QFLyEAVAF3Buid-4%3D.
EDL: Could not open source file 'https://rr1---sn-5hne6nsy.googlevideo.com/videoplayback?expire=1721842338&ei=QuagZuHdLNnIp-oPu76U-Ag&ip=185.213.155.137&id=o-AHcxi6nmG6RPcyWh9IV7tRNYN8lfyYsTEOrFPnIasOWM&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=AR&mm=31%2C26&mn=sn-5hne6nsy%2Csn-4g5ednsr&ms=au%2Conr&mv=m&mvi=1&pl=24&gcr=de&initcwndbps=692500&bui=AXc671Kn9xoPCs0HMPdR2gB-tYCHWHLP3NhLpwtcoJODCTg9D0jVu1BkcMF9JvNV6YMmLOs1HYBHCYMq&spc=NO7bAY8gvZLZnUNY5011NcplrDvtlFr3SSH39X1HrjlYiMOKd9kph98wJg02&vprv=1&svpuc=1&xtags=acont%3Doriginal%3Alang%3Den&mime=audio%2Fwebm&ns=sEpHwWIYUJOWKQ8g-52xmNUQ&rqh=1&gir=yes&clen=16117851&dur=946.101&lmt=1698086488463994&mt=1721820311&fvip=5&keepalive=yes&c=WEB&sefc=1&txp=4532434&n=bN9899hHmRkRl8O&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cxtags%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgLyMMwc_XDDULOXv3Qbvj0W6SGee1y-u8oJsAB49bvCgCIEiWtj6eKvNoMbLlmjael0rFQcmotn1NJV2br5ZB7k4x&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AGtxev0wRgIhANa2ck2yt9QL50LI_Q2yPF-GD1vRH61NTY70lr4x-XLyAiEAz4SO5rObhxkKM6XTzDoUpWxfLa0QFLyEAVAF3Buid-4%3D'.

No video or audio streams selected.

To Reproduce

sudo apt install -y suckless-tools fzf curl jq mpv demenu ueberzug
git clone https://github.com/pystardust/ytfzf
cd ytfzf
sudo make install doc
ytfzf

Expected behavior

working Youtube Video

Screenshots

Information

Additional context

I tried the following fix to no avail: ytfzf --rii

279308 commented 3 months ago

same here

tabletseeker commented 3 months ago

same here

I fixed it by installing from the unstable repository.

Execute the following as root:

echo "deb https://deb.debian.org/debian unstable main" >> /etc/apt/sources.list
apt-get update && apt-get install -t unstable ytfzf mpv ueberzug

Then it works fine.

279308 commented 3 months ago
echo "deb https://deb.debian.org/debian unstable main" >> /etc/apt/sources.list
apt-get update && apt-get install -t unstable ytfzf mpv ueberzug

The unstable repository is still giving me more error messages. Nevertheless, thank you very much

tabletseeker commented 3 months ago
echo "deb https://deb.debian.org/debian unstable main" >> /etc/apt/sources.list
apt-get update && apt-get install -t unstable ytfzf mpv ueberzug

The unstable repository is still giving me more error messages. Nevertheless, thank you very much

What platform are you on and what is the new error message?

As a test run start it with ytfzf -t -T kitty trump