- fixes #13 (Cannot download episodes anymore) - uses _librespot-python_ interfaces instead of raw web API access (needed to fix #13) - can not yet determine decrypted file size for Spotify-hosted episodes (which used to work) so will only look at the file name to determine whether an episode has already been downloaded. To retry corrupted downloads just remove the partially downloaded file and try again.
8 lines
251 B
Python
8 lines
251 B
Python
TYPE = 'type'
|
|
LIMIT = 'limit'
|
|
OFFSET = 'offset'
|
|
CREDENTIALS_PREFIX = 'spodcast-cred'
|
|
USER_READ_EMAIL = 'user-read-email'
|
|
FILE_EXISTS = -1
|
|
OPEN_SPOTIFY_URL = 'open.spotify.com'
|
|
IMAGE_CDN = lambda image_id_hex: f'https://i.scdn.co/image/{image_id_hex}'
|