miraclx / freyr-js

A tool for downloading songs from music streaming services like Spotify and Apple Music.
https://git.io/freyr-js
Apache License 2.0
1.48k stars 94 forks source link

Apple music failures- "Request failed with status code 403" #680

Closed muetex closed 1 month ago

muetex commented 1 month ago

Using latest docker image, any apple music request fails to get the audio stream with a 403 forbidden.

Here is an example trace, from sample usage provided in the readme:

sudo docker run -it --rm -v ./mtr:/data freyrcli/freyrjs https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443

...

freyr - (c) Miraculous Owonubi <omiraculous@gmail.com>
------------------------------------------------------
[•] Initializing config file...[done]
Checking directory permissions...[done]
[https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443]
 [•] Identifying service...[Apple Music]
 [•] Checking authentication...[unauthenticated]
 [Apple Music Login]
  [•] Logging in...[done]
 Detected [album]
 Obtaining album metadata...[done]
  ➤ Album Name: I'm Sorry, I'm Not Sorry
  ➤ Artist: Sody
  ➤ Tracks: 4
  ➤ Type: Album
  ➤ Year: 2020
  ➤ Genres: Singer/Songwriter, Music
 [•] Collating [I'm Sorry, I'm Not Sorry]...
  [•] Inquiring tracks...[done]
   • [01 What We Had]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 3 sources]
      | ➤ Awaiting audiofeeds...[done]
      | [✓] Got album art
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403]
   • [02 Reason To Stay]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 4 sources]
      | ➤ Awaiting audiofeeds...[done]
      | [✓] Got album art
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403]
   • [04 Love's a Waste]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 2 sources]
      | ➤ Awaiting audiofeeds...[done]
      | [✓] Got album art
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403]
   • [03 Nothing Ever Changes]
      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...[success, found 1 source]
      | ➤ Awaiting audiofeeds...[done]
      | [✓] Got album art
      | [✕] Failed to get raw media stream [An error occurred while collecting and parsing information from the URL: Request failed with status code 403]
 [•] Download Complete
 [•] Embedding Metadata...
  • [✕] 01 What We Had [apple_music:track:1491795452] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 02 Reason To Stay [apple_music:track:1491795455] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 03 Nothing Ever Changes [apple_music:track:1491795607] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
  • [✕] 04 Love's a Waste [apple_music:track:1491795614] (failed: Error downloading raw audio [An error occurred while collecting and parsing information from the URL: Request failed with status code 403])
[•] Collation Complete
============ Stats ============
 [•] Runtime: [13.6s]
 [•] Total queries: [01]
 [•] Total tracks: [04]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [04]
 [•] Output directory: [.]
 [•] Total Output size: 0.00 B
 [•] Total Network Usage: 0.00 B
     ♫ Media: 0.00 B
     ➤ Album Art: 0.00 B
 [•] Output bitrate: 320k
===============================
muetex commented 1 month ago

Closing as a VPN issue- youtube is blocking my client Whoops!

remadex commented 1 month ago

Hi,

I've also this issue 😥 But don't have any running vpn. @muetex do you have an advice to avoid this error 403 ?

Thanks !!

miraclx commented 1 month ago

do you have an advice to avoid this error 403 ?

@remadex, does youtube.com work where you are?

remadex commented 1 month ago

@miraclx yes, it's working and just in case, i'm from Belgium

Panic1811 commented 1 month ago

Hey @remadex did you find a fix?

miraclx commented 1 month ago

Let's carry this over to #681.