maxcutlyp / YoutubeBot

A self-hosted Discord bot for playing YouTube videos
51 stars 26 forks source link

Error 403 #11

Open chenchuuu opened 1 year ago

chenchuuu commented 1 year ago

The bot can not play music because this error:

"failed to download due to error: [download] Got error: HTTP Error 403: Forbidden"

maxcutlyp commented 1 year ago

Hey @chenchuuu,

I can't reproduce that error - could you check which version of yt_dlp you're running with pip show yt_dlp?

If you're on the latest version and still getting that error, send the link to the video you're trying to play and I'll take a look.

chenchuuu commented 1 year ago

Hello, I've updated yt_dlp and it doesnt work yet. There is the video: https://youtu.be/2kkR-2KArtY

maxcutlyp commented 12 months ago

Hm, okay, I'm still not able to reproduce the issue on my end. What output do you get if you run python -m yt_dlp https://www.youtube.com/watch?v=-WevdSfpw-Q - does it download the video? Also, does it have the same issue with any video, or is it just that one video?

chenchuuu commented 12 months ago

I got this output: https://imgur.com/a/ICpGfF5; it happens with any video.

DubbaThony commented 7 months ago

I'm facing same issue. It seems youtube isn't willing to serve the content

Logs:

2024-01-15 21:32:58 INFO     discord.client logging in using static token
2024-01-15 21:32:59 INFO     discord.gateway Shard ID None has connected to Gateway (Session ID: 8[REDACTED]6e).
logged in successfully as PLC-DJ
[youtube] Extracting URL: https://www.youtube.com/watch?v=qzv-ySVqZXw
[youtube] qzv-ySVqZXw: Downloading webpage
[youtube] qzv-ySVqZXw: Downloading android player API JSON
[youtube] Extracting URL: https://www.youtube.com/watch?v=qzv-ySVqZXw
[youtube] qzv-ySVqZXw: Downloading webpage
[youtube] qzv-ySVqZXw: Downloading android player API JSON
[info] qzv-ySVqZXw: Downloading 1 format(s): 139
[dashsegments] Total fragments: 1
[download] Destination: ./dl/240776708167303168/qzv-ySVqZXw.m4a
[download] Got error: HTTP Error 403: Forbidden