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

[REQUEST] provide a way to get the decrypted file size for a given stream #140

Open
Yetangitu opened this issue Jun 30, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Yetangitu
Copy link

Yetangitu commented Jun 30, 2022

See #135 (comment)

I'm looking for way to get the decrypted size - or 'file size' - for a content stream. I use this data point in spodcast to decide whether to re-download a previously downloaded episode, e.g. due to it being edited since publishing (I've seen this happen) or due to the previous download being interrupted. This worked in the previous iteration (which used raw web API access, something which no longer works due to changes in the way Spotify serves netcast episodes) but in the current version (which uses librespot-python interfaces to retrieve metadata) I seem to only be able to get the size of the encrypted stream which is ~13% larger than the decrypted content.

I don't know whether Spotify makes these data available, if they don't I'll have to forego on this check for Spotify-hosted (i.e. encrypted) episodes.

@Yetangitu Yetangitu added the enhancement New feature or request label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant