mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-25 08:35:49 +03:00
[GH-ISSUE #243] How can I get audio key? #39
Labels
No labels
bug
dependencies
duplicate
enhancement
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot-python-kokarare1212#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @staniel359 on GitHub (Oct 28, 2023).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/243
Hello.
From my console I try to call
session.audio_key().get_audio_key(track.gid, file.file_id)but after some time it returns_queue.Empty.What's the problem?
@kokarare1212 commented on GitHub (Oct 28, 2023):
Please provide debug logs according to README.md.
@staniel359 commented on GitHub (Oct 28, 2023):
@kokarare1212
@kokarare1212 commented on GitHub (Oct 28, 2023):
As a general troubleshooting, could you please check if the music is restricted by country or account type, or if it is available in a different codec?
@staniel359 commented on GitHub (Oct 28, 2023):
@kokarare1212 It's not restricted as
session.content_feeder().load()worked.If I run it, I see that
file_idisc04e355b9f4606b21f94b2a4de5db26aeca0163f(for .ogg 160).Also track's spotify id
29d0nY7TzCoi22XBqDQkiPconverts to46982c56ce8f4470a377026e2fe1ac2fglobal id.@kokarare1212 commented on GitHub (Oct 28, 2023):
Ah, I missed something important.
The argument passed must be bytes, not hex.
@staniel359 commented on GitHub (Oct 28, 2023):
@kokarare1212 But I pass it as
b'id_value'.@kokarare1212 commented on GitHub (Oct 29, 2023):
No, it is not.
@staniel359 commented on GitHub (Oct 29, 2023):
@kokarare1212 I see.
How can I convert them to these values?
@kokarare1212 commented on GitHub (Oct 29, 2023):
You can use this: https://docs.python.org/3/library/stdtypes.html#bytes.fromhex
@kokarare1212 commented on GitHub (Oct 29, 2023):
No, it's Shannon Cipher( https://www.cantorsparadise.com/shannon-ciphers-and-perfect-security-d70c10379ac2 )
@staniel359 commented on GitHub (Oct 29, 2023):
@kokarare1212 Thanks!