freyr-js icon indicating copy to clipboard operation
freyr-js copied to clipboard

Unable to extract core script from Apple Music

Open Black-Chowder opened this issue 3 months ago • 11 comments

Running into an issue when trying to download apple music links. Tried running the demo command but get checking authentication unauthenticated then apple music login failed: unable to extract core script from Apple Music. Spotify links are working. It's only when I try to grab from Apple Music. Is there a special login procedure for apple music?

PS D:\Music> freyr https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443
    ____
   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /
/_/ /_/   \___/\__, /_/
              /____/ v0.10.3

freyr - (c) Miraculous Owonubi <[email protected]>
------------------------------------------------------
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...(failed: [Unable to extract core script from Apple Music])
[✕] Failed to authenticate client!
============ Stats ============
 [•] Runtime: [677ms]
 [•] Total queries: [01]
 [•] Total tracks: [00]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [00]
 [•] 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
===============================

Black-Chowder avatar Oct 06 '25 19:10 Black-Chowder

+1 getting this now, too. Wondering if it might be something to do with macOS Tahoe upgrade?

suranyami avatar Oct 07 '25 02:10 suranyami

Also, seems like all Youtube downloading is now broken. Just tried downloading a Spotify playlist that I KNOW worked a month ago, and now every single download attempt says

      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...(failed: [Response code 404 (Not Found)]) 
      |  ➤ [•] YouTube...[success, found 5 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✕] No suitable audio format found

suranyami avatar Oct 07 '25 02:10 suranyami

+1 getting this now, too. Wondering if it might be something to do with macOS Tahoe upgrade?

I don't think it has to do with the macOS upgrade. I'm running on Windows and even tried the dockerized version with the same results.

Also, seems like all Youtube downloading is now broken. Just tried downloading a Spotify playlist that I KNOW worked a month ago, and now every single download attempt says

      | ➤ Collating sources...
      |  ➤ [•] YouTube Music...(failed: [Response code 404 (Not Found)]) 
      |  ➤ [•] YouTube...[success, found 5 sources]
      | ➤ Awaiting audiofeeds...[done] 
      | [✕] No suitable audio format found

I'm getting the same thing but have found that if I run the script multiple times it will usually find a source

Black-Chowder avatar Oct 07 '25 15:10 Black-Chowder

I've tried the same playlists using gamdl (https://github.com/glomatico/gamdl) and they work fine.

They've had recent updates to the yt-dlp library, so I suspect that Youtube changed something and it needs an update to continue working.

suranyami avatar Oct 08 '25 01:10 suranyami

New user of freyr but same for me.

fred7847 avatar Oct 09 '25 14:10 fred7847

Same here (Windows).

narayanx avatar Oct 10 '25 05:10 narayanx

same for me

hendrik244 avatar Oct 11 '25 08:10 hendrik244

same here

utm4thewin avatar Oct 19 '25 01:10 utm4thewin

failed with same error, I'm using macos

/ /_____ __ _______ / // / _ / / / / / / __/ / / __/ // / / // // _/_, // /____/ v0.10.3

freyr - (c) Miraculous Owonubi [email protected]

Checking directory permissions...[done] [https://music.apple.com/us/album/colorful-days/369655124?i=369655181] [•] Identifying service...[Apple Music] [•] Checking authentication...[unauthenticated] [Apple Music Login] [•] Logging in...(failed: [Unable to extract core script from Apple Music]) [✕] Failed to authenticate client! ============ Stats ============ [•] Runtime: [336ms] [•] Total queries: [01] [•] Total tracks: [00] » Skipped: [00] ✓ Passed: [00] ✕ Failed: [00] [•] 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

zeissmania avatar Oct 24 '25 21:10 zeissmania

giving me the same issue, either i upload a .p8 token which i dont have or the program pulls it from apple, but it seems theyve implemented a new security measure where the tokens lock/rotate.

imretep avatar Oct 28 '25 23:10 imretep

having the same issue here too

PatLeeNic avatar Nov 08 '25 03:11 PatLeeNic