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

Yandex Music is broken #25808

Closed
akimdi opened this issue Jun 27, 2020 · 11 comments
Closed

Yandex Music is broken #25808

akimdi opened this issue Jun 27, 2020 · 11 comments

Comments

@akimdi
Copy link

@akimdi akimdi commented Jun 27, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.06.16.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl --rm-cache-dir --extract-audio https://music.yandex.ru/album/10130567/track/63591534

Removing cache dir ~/.cache/youtube-dl ..
[yandexmusic:track] 63591534: Downloading track JSON
[yandexmusic:track] 63591534: Downloading track location url JSON
[yandexmusic:track] 63591534: Downloading track location JSON
ERROR: An extractor error has occurred. (caused by KeyError('storageDir')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@grishka
Copy link

@grishka grishka commented Jul 1, 2020

I, too, have a likely related issue with yandex music. I tried downloading an entire album, and while it appeared to complete successfully, it only downloads the first 30 seconds of each track.

$ youtube-dl https://music.yandex.ru/album/417333
[yandexmusic:album] 417333: Downloading album JSON
[download] Downloading playlist: Гости из будущего - Best (2001)
[yandexmusic:album] playlist Гости из будущего - Best (2001): Collected 14 video ids (downloading 14 of them)
[download] Downloading video 1 of 14
[yandexmusic:track] 30390995: Downloading track JSON
[yandexmusic:track] 30390995: Downloading track location url JSON
[yandexmusic:track] 30390995: Downloading track location JSON
[download] Destination: Гости из будущего - Люби меня по-французски-30390995.mp3
[download] 100% of 469.84KiB in 00:00
[download] Downloading video 2 of 14
[yandexmusic:track] 30390998: Downloading track JSON
[yandexmusic:track] 30390998: Downloading track location url JSON
[yandexmusic:track] 30390998: Downloading track location JSON
[download] Destination: Гости из будущего - Так отважно-30390998.mp3
[download] 100% of 469.84KiB in 00:00
[download] Downloading video 3 of 14
[yandexmusic:track] 30391000: Downloading track JSON
[yandexmusic:track] 30391000: Downloading track location url JSON
[yandexmusic:track] 30391000: Downloading track location JSON
[download] Destination: Гости из будущего - Это сильнее меня-30391000.mp3
[download] 100% of 469.84KiB in 00:00
[download] Downloading video 4 of 14
...
[download] 100% of 469.84KiB in 00:00
[download] Finished downloading playlist: Гости из будущего - Best (2001)

(notice the file sizes)

I'm running youtube-dl 2020.06.16.1.

@akimdi
Copy link
Author

@akimdi akimdi commented Jul 1, 2020

I'm stupid 🤦
@grishka
use flag --cookies

youtube-dl --rm-cache-dir --extract-audio --cookies ~/cookies.txt https://music.yandex.ru/album/417333

@akimdi
Copy link
Author

@akimdi akimdi commented Jul 1, 2020

It's not a bug.
How can I close issue?

@grishka
Copy link

@grishka grishka commented Jul 1, 2020

Doesn't make a difference to me. Or do I need to dump the related cookies from my browser?

@akimdi
Copy link
Author

@akimdi akimdi commented Jul 1, 2020

@grishka
It doesn't matter

@grishka
Copy link

@grishka grishka commented Jul 1, 2020

Well, for me, this

$ youtube-dl --cookies ~/cookies.txt https://music.yandex.ru/album/417333

still downloads 30-second fragments.

@akimdi
Copy link
Author

@akimdi akimdi commented Jul 1, 2020

@akimdi
Copy link
Author

@akimdi akimdi commented Jul 1, 2020

1593641301

@grishka
Copy link

@grishka grishka commented Jul 1, 2020

Yeah it does download complete tracks with that file filled with yandex cookies dumped from a logged in browser. That's what I meant initially and you said "it doesn't matter" so I assumed it just needed cookies to persist between requests.

@akimdi
Copy link
Author

@akimdi akimdi commented Jul 1, 2020

How can I close issue?
Because it's not a bug.

@remitamine remitamine closed this Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.