mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-25 00:25:49 +03:00
[GH-ISSUE #272] [REQUEST] Fetch audio key from seektables & MP4 Format #46
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#46
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 @KagChi on GitHub (May 21, 2024).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/272
You can fetch audio key from seektables then try to decrypt the
pssh_widevineto get the audio keythe url are
https://seektables.scdn.co/seektable/fileId.jsonfile id are hex from audio formatsSeems you can only fetch MP4_* audio key
@kokarare1212 commented on GitHub (May 21, 2024):
This is the first time I have heard of the MP4 format.
Does that mean they will be decrypted by Widevine?
@KagChi commented on GitHub (May 22, 2024):
No, you can decrypt the track with current strategy. just fetching the audio key from the seektables without requesting it from mercury client.
here is the snippet. why not use PSSH module? the project doesnt suppport latest protobuf. so we are safe to fetch higher MP4 quality without premiums. since the seektables were available for all MP4 formats.
Example:

keyIds are the key to decrypt the track. they are in base64 so convert it to hex first.
@KagChi commented on GitHub (Jun 8, 2024):
Any updates on this?
@kokarare1212 commented on GitHub (Jun 8, 2024):
I do not currently have the time to add features, if you can write the code, I will merge it after reviewing it.
@KagChi commented on GitHub (Jun 8, 2024):
i have the implementation, but i cant test it. the proto seems need to build? do u mind to test it out?
and also, i dont really know MP4_128 proto code. only guessing it... 😂
@kokarare1212 commented on GitHub (Jun 8, 2024):
There are a lot of unknowns about MP4_128.
For now, we will wait until we see movement in other related libraries...