[GH-ISSUE #5] Seems to hang on "Getting decryption key" #5

Open
opened 2026-03-04 14:58:31 +03:00 by kerem · 7 comments
Owner

Originally created by @sambragg on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/GladistonXD/votify-fix/issues/5

Output from running votify --log-level DEBUG:

[DEBUG    14:08:27] Getting track metadata
[DEBUG    14:08:28] Getting album metadata
[DEBUG    14:08:28] Getting stream info
[INFO     14:08:28] The current bit rate is 256 kb/s
[DEBUG    14:08:28] Getting lyrics
[DEBUG    14:08:28] Getting track credits
[DEBUG    14:08:28] Getting decryption key
Originally created by @sambragg on GitHub (Feb 7, 2026). Original GitHub issue: https://github.com/GladistonXD/votify-fix/issues/5 Output from running `votify --log-level DEBUG`: ```[INFO 14:08:24] (Track 1/7 from URL 1/1) Downloading "Times Change" [DEBUG 14:08:27] Getting track metadata [DEBUG 14:08:28] Getting album metadata [DEBUG 14:08:28] Getting stream info [INFO 14:08:28] The current bit rate is 256 kb/s [DEBUG 14:08:28] Getting lyrics [DEBUG 14:08:28] Getting track credits [DEBUG 14:08:28] Getting decryption key
Author
Owner

@solarfox64-design commented on GitHub (Feb 7, 2026):

This error only occurs with the remote CDM; it works fine with device.wvd local, but the download speed is reduced. I hope you resolve the problem. A hug from Mexico.

<!-- gh-comment-id:3865432047 --> @solarfox64-design commented on GitHub (Feb 7, 2026): This error only occurs with the remote CDM; it works fine with device.wvd local, but the download speed is reduced. I hope you resolve the problem. A hug from Mexico.
Author
Owner

@GladistonXD commented on GitHub (Feb 10, 2026):

After a certain number of songs, the speed is reduced because Spotify recognizes multiple requests for decryption keys, so it needs 4 to 5 attempts to obtain the key, which is why it becomes slow.

<!-- gh-comment-id:3877046388 --> @GladistonXD commented on GitHub (Feb 10, 2026): After a certain number of songs, the speed is reduced because Spotify recognizes multiple requests for decryption keys, so it needs 4 to 5 attempts to obtain the key, which is why it becomes slow.
Author
Owner

@cynthia2006 commented on GitHub (Feb 26, 2026):

That's what I was wondering, but my investigation reveals that the tracks could be downloaded in parallel, and the decryption could then proceed at any speed. Besides, they might be using HTTP/2 or TLS fingerprinting too.

<!-- gh-comment-id:3965726562 --> @cynthia2006 commented on GitHub (Feb 26, 2026): That's what I was wondering, but my investigation reveals that the tracks could be downloaded in parallel, and the decryption could then proceed at any speed. Besides, they might be using HTTP/2 or TLS fingerprinting too.
Author
Owner

@GladistonXD commented on GitHub (Feb 26, 2026):

@cynthia2006 Can you download 80 decryption keys simultaneously? I've never tested it, but if that were the case, it would be possible to download an entire playlist without potential bans. The problem is the time it takes to process everything and then download it.

<!-- gh-comment-id:3965968901 --> @GladistonXD commented on GitHub (Feb 26, 2026): @cynthia2006 Can you download 80 decryption keys simultaneously? I've never tested it, but if that were the case, it would be possible to download an entire playlist without potential bans. The problem is the time it takes to process everything and then download it.
Author
Owner

@cynthia2006 commented on GitHub (Feb 26, 2026):

No, ofcourse not. We can download the encrypted tracks in parallel, but license acquisition can proceed sequentially. I'm investigating that in my project votifast.

<!-- gh-comment-id:3966108432 --> @cynthia2006 commented on GitHub (Feb 26, 2026): No, ofcourse not. We can download the encrypted tracks in parallel, but license acquisition can proceed sequentially. I'm investigating that in my project [votifast](https://github.com/cynthia2006/votifast).
Author
Owner

@GladistonXD commented on GitHub (Feb 26, 2026):

The problem lies with the decryption key; there's no limitation on downloading the encrypted tracks.

<!-- gh-comment-id:3966133955 --> @GladistonXD commented on GitHub (Feb 26, 2026): The problem lies with the decryption key; there's no limitation on downloading the encrypted tracks.
Author
Owner

@cynthia2006 commented on GitHub (Feb 26, 2026):

Yeah, that's the bottleneck. However, quickly saving the tracks first, then decrypting does seem like a better option. I'm wondering if we could figure out how does Spotify decrypts in the offline mode, we can possibly bypass the ratelimit.

<!-- gh-comment-id:3966224618 --> @cynthia2006 commented on GitHub (Feb 26, 2026): Yeah, that's the bottleneck. However, quickly saving the tracks first, then decrypting does seem like a better option. I'm wondering if we could figure out how does Spotify decrypts in the offline mode, we can possibly bypass the ratelimit.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/votify-fix#5
No description provided.