th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
7.8k stars 471 forks source link

Error : The server responded with a non 2xx status code #2270

Closed 4096Richard closed 1 month ago

4096Richard commented 1 month ago

Preflight Checklist

YouTube Music (Application) Version

3.4.1

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 11 Pro

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Enable the downloader on the newest version and try to download any song it will appear with Error: The server responded with a non 2xxx status code

Expected Behavior

For it to download and not to fail but it seems youtube/google is locking this down

Actual Behavior

You go to download music for your giant itunes libary (me ) and it appears that it just fails with every song

Enabled plugins

  1. Ad blocker
  2. Album cover theme
  3. Ambient mode
  4. Compact side bar
  5. Crossfade beta
  6. Disable autoplay
  7. Discord rich presence
  8. Downloader
  9. In-app menu
  10. Lyrics Genius
  11. Notifications
  12. Precise volume

Additional Information

No response

walker-11 commented 1 month ago

image same Issue with me

pachyderm111 commented 1 month ago

image same here :/

MichaeIDeSanta commented 1 month ago

image same on windows 10 too

SamuDifferent commented 1 month ago

image Same on Ubuntu 24.04 LTS

codeXXjs commented 1 month ago

It appears to be from the server side. Hopefully there's a fix rolling out soon.

4096Richard commented 1 month ago

It appears to be from the server side. Hopefully there's a fix rolling out soon.

Thanks

AuracleTech commented 1 month ago

In waiting for those who use python & FFMPEG you can use this Not ideal, but its a temporary alternative Edit : Idk if it could be implemented considering its python, but it would fix the issue, also it uses ffmpeg which idk if youtube music does by default, just wanted to let that out

import yt_dlp as youtube_dl

def get_video(url, output_path="."):
    ydl_opts = {
        "outtmpl": f"{output_path}/%(artist)s - %(title)s.%(ext)s",
        "format": "bestaudio/best",
        "postprocessors": [
            {
                "key": "FFmpegExtractAudio",
                "preferredcodec": "mp3",
                "preferredquality": "320",
            }
        ],
        "postprocessor_args": ["-ar", "48000"],
        "prefer_ffmpeg": True,
    }

    try:
        with youtube_dl.YoutubeDL(ydl_opts) as ydl:
            ydl.download([url])
        print("Download and conversion completed successfully.")
    except Exception as e:
        print(f"An error occurred: {e}")

if __name__ == "__main__":
    video_url = input("Enter the YouTube video URL: ")
    output_directory = (
        input("Enter the output directory (leave blank for current directory): ") or "."
    )
    get_video(video_url, output_directory)
ArjixWasTaken commented 1 month ago

In waiting for those who use python & FFMPEG you can use this Not ideal, but its a temporary alternative Edit : Idk if it could be implemented considering its python, but it would fix the issue, also it uses ffmpeg which idk if youtube music does by default, just wanted to let that out

import yt_dlp as youtube_dl

def get_video(url, output_path="."):
    ydl_opts = {
        "outtmpl": f"{output_path}/%(artist)s - %(title)s.%(ext)s",
        "format": "bestaudio/best",
        "postprocessors": [
            {
                "key": "FFmpegExtractAudio",
                "preferredcodec": "mp3",
                "preferredquality": "320",
            }
        ],
        "postprocessor_args": ["-ar", "48000"],
        "prefer_ffmpeg": True,
    }

    try:
        with youtube_dl.YoutubeDL(ydl_opts) as ydl:
            ydl.download([url])
        print("Download and conversion completed successfully.")
    except Exception as e:
        print(f"An error occurred: {e}")

if __name__ == "__main__":
    video_url = input("Enter the YouTube video URL: ")
    output_directory = (
        input("Enter the output directory (leave blank for current directory): ") or "."
    )
    get_video(video_url, output_directory)

why give code when you can directly use yt-dlp from the command line?

AuracleTech commented 1 month ago

because you can manipulate the video/audio from code

ArjixWasTaken commented 1 month ago

Well, that is completely pointless since we are not using python for this project.

Heck, we are already using a library to "manipulate" video/audio from code.

AuracleTech commented 1 month ago

Well, that is completely pointless since we are not using python for this project.

Heck, we are already using a library to "manipulate" video/audio from code.

Like it said it was an alternative for users who wanted to dl while its down, I just shared the script I made myself for my server The implementation was just a recommendation if possible, if not its whatever

Dan-tk commented 1 month ago

Well, that is completely pointless since we are not using python for this project. Heck, we are already using a library to "manipulate" video/audio from code.

Like it said it was an alternative for users who wanted to dl while its down, I just shared the script I made myself for my server The implementation was just a recommendation if possible, if not its whatever

Where to put this script?

ArjixWasTaken commented 1 month ago

if you don't already know, then nowhere it is meant for people that know how to write scripts/programs

Dan-tk commented 1 month ago

if you don't already know, then nowhere it is meant for people that know how to writ

I just wanted a heads up, because I can't download songs. Also I only know JS, and not python, but I'm learning python

neolight1010 commented 1 month ago

This issue seems to have been solved in the latest release.

AuracleTech commented 1 month ago

This issue seems to have been solved in the latest release.

Just tested new update, download button doesn't do anything, I click on it and its as if there was no function/action linked to it DL folder empty too

avivi55 commented 1 month ago

This issue seems to have been solved in the latest release.

Still broken.

JellyBrick commented 1 month ago

This issue seems to have been solved in the latest release.

Still broken.

@avivi55 Have you tried v3.5.1?

AuracleTech commented 1 month ago

This issue seems to have been solved in the latest release.

Still broken.

@avivi55 Have you tried v3.5.1?

This one released 28 min ago works

avivi55 commented 1 month ago

@avivi55 Did you try 3.5.1?

The changelog doesn't mention this issue. Just tried it it works. my bad.

nice work :+1:

ArjixWasTaken commented 1 month ago

the changelog is automated, and it says to look at the commit history between the previous and the current release for more info

4096Richard commented 1 month ago

Thanks guys needed it for my step dads birthday CD thanks a lot