Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not available for downloading artist #40

Open
gerberanub opened this issue Apr 21, 2024 · 1 comment
Open

not available for downloading artist #40

gerberanub opened this issue Apr 21, 2024 · 1 comment

Comments

@gerberanub
Copy link

PS E:\manzana> python manzana.py https://music.apple.com/us/artist/jacob-lavallee/152533595

$$$$$$\$$$$\   $$$$$$\  $$$$$$$\  $$$$$$$$\ $$$$$$\  $$$$$$$\   $$$$$$\
$$  _$$  _$$\  \____$$\ $$  __$$\ \____$$  |\____$$\ $$  __$$\  \____$$\
$$ / $$ / $$ | $$$$$$$ |$$ |  $$ |  $$$$ _/ $$$$$$$ |$$ |  $$ | $$$$$$$ |
$$ | $$ | $$ |$$  __$$ |$$ |  $$ | $$  _/  $$  __$$ |$$ |  $$ |$$  __$$ |
$$ | $$ | $$ |\$$$$$$$ |$$ |  $$ |$$$$$$$$\\$$$$$$$ |$$ |  $$ |\$$$$$$$ |
\__| \__| \__| \_______|\__|  \__|\________|\_______|\__|  \__| \_______|

                    ──── Apple Music Downloader ────

[19:46:02] [ManzanaCore] INFO: Loading device...
[19:46:02] [ManzanaCore] INFO: Checking accessToken...
[19:46:03] [ManzanaCore] INFO: Checking mediaUserToken...
[19:46:03] [ManzanaCore] INFO: Checking passed urls...
[19:46:04] [ManzanaCore] INFO: Fetching artist contents...

     Artist: Jacob LaVallee

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ E:\manzana\manzana.py:83 in │
│ │
│ 80 │ print(LOGO) │
│ 81 │ args = main() │
│ 82 │ config.get_config() │
│ ❱ 83 │ run(args) │
│ 84 │
│ │
│ E:\manzana\core\control.py:35 in run │
│ │
│ 32 │ │ logger.info("Checking passed urls...") │
│ 33 │ │ │
│ 34 │ │ urls = parse.input_urls(args.url) │
│ ❱ 35 │ │ urls = aplm.get_urls(urls) │
│ 36 │ │ │
│ 37 │ │ logger.info("Starting download process...") │
│ 38 │
│ │
│ E:\manzana\core\api\aplm.py:411 in get_urls │
│ │
│ 408 │ │ for url in urls: │
│ 409 │ │ │ if "/artist/" in url: │
│ 410 │ │ │ │ self.__parse_url(url) │
│ ❱ 411 │ │ │ │ for ul in self.__get_artist(url): │
│ 412 │ │ │ │ │ u.append(ul) │
│ 413 │ │ │ else: u.append(url) │
│ 414 │ │ return u │
│ │
│ E:\manzana\core\api\aplm.py:229 in __get_artist │
│ │
│ 226 │ │ │ │ self.session, │
│ 227 │ │ │ │ f"https://amp-api.music.apple.com/v1/catalog/{self.storefront}/artists/{
│ 228 │ │ │ ), │
│ ❱ 229 │ │ │ __get_res( │
│ 230 │ │ │ │ self.session, │
│ 231 │ │ │ │ f"https://amp-api.music.apple.com/v1/catalog/{self.storefront}/artists/{
│ 232 │ │ │ ), │
│ │
│ E:\manzana\core\api\aplm.py:176 in __get_res │
│ │
│ 173 │ │ │ │ r = session.get(apiUrl) │
│ 174 │ │ │ │ r = json.loads(r.text) │
│ 175 │ │ │ │ │
│ ❱ 176 │ │ │ │ for item in r["data"]: │
│ 177 │ │ │ │ │ name = item["attributes"]["name"] │
│ 178 │ │ │ │ │ if " - EP" in name: name = name.replace(" - EP", "") + " [EP]" │
│ 179 │ │ │ │ │ if " - Single" in name: name = name.replace(" - Single", "") + " [S] │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
KeyError: 'data'
PS E:\manzana>

@Some1Rxndom
Copy link

I also have this problem for some artists. Have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants