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

ogg files #2

Open
3052 opened this issue Mar 11, 2024 · 4 comments
Open

ogg files #2

3052 opened this issue Mar 11, 2024 · 4 comments

Comments

@3052
Copy link

3052 commented Mar 11, 2024

how to get them?

OGG_VORBIS_320
OGG_VORBIS_160
OGG_VORBIS_96

@JustYuuto
Copy link
Owner

image

Replace the [4] by the index (from the array above) of the file you need

file_id = track['file'][4]['file_id']

The current index is the 4th, so for the MP4_256 quality. Therefore I don't know if it'll work with ogg files, let me know

@3052
Copy link
Author

3052 commented Mar 12, 2024

this line fails for OGG files:

pssh = PSSH(requests.get(f'https://seektables.scdn.co/seektable/{file_id}.json').json()['pssh'])

so how to get the key?

@JustYuuto
Copy link
Owner

I think I fixed it in the latest commit, please try with it then let me know if it works

@3052
Copy link
Author

3052 commented Mar 16, 2024

I dont think you understand. from this response:

[
 {
   "file_id": "98b53c239db400b0a016145700de431f68d28f54",
   "format": "OGG_VORBIS_320"
 },
 {
   "file_id": "6a5f12fa51f2c1e284af707a99f3ca8696f7f62f",
   "format": "OGG_VORBIS_160"
 },
 {
   "file_id": "f682d2a95d0e14eeef4f40b60fddde56bc6721c7",
   "format": "OGG_VORBIS_96"
 },
 {
   "file_id": "173df68b5097d407deff841f41576c81c30e1342",
   "format": "MP4_256_DUAL"
 },
 {
   "file_id": "6c9e7830a3f4bc77d0384bc3f5d27df5205e5130",
   "format": "MP4_256"
 },
 {
   "file_id": "93d1765cfdc5e84a41600051731a7affcaa2e912",
   "format": "MP4_128_DUAL"
 },
 {
   "file_id": "392482fe9bed7372d1657d7e22f32b792902f3bd",
   "format": "MP4_128"
 }
]

these all work:

MP4_128
https://seektables.scdn.co/seektable/392482fe9bed7372d1657d7e22f32b792902f3bd.json

MP4_128_DUAL
https://seektables.scdn.co/seektable/93d1765cfdc5e84a41600051731a7affcaa2e912.json

MP4_256
https://seektables.scdn.co/seektable/6c9e7830a3f4bc77d0384bc3f5d27df5205e5130.json

MP4_256_DUAL
https://seektables.scdn.co/seektable/173df68b5097d407deff841f41576c81c30e1342.json

but these all fail:

OGG_VORBIS_96
https://seektables.scdn.co/seektable/f682d2a95d0e14eeef4f40b60fddde56bc6721c7.json

OGG_VORBIS_160
https://seektables.scdn.co/seektable/6a5f12fa51f2c1e284af707a99f3ca8696f7f62f.json

OGG_VORBIS_320
https://seektables.scdn.co/seektable/98b53c239db400b0a016145700de431f68d28f54.json

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