mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-25 08:35:49 +03:00
[GH-ISSUE #267] [BUG] Tokens expiring too fast #45
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#45
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 @geogamba on GitHub (Apr 19, 2024).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/267
Describe the bug
The token expiration conversion of seconds to microseconds is incorrect. I've been having problems with tokens expiring too fast, and narrowed it down to this problem.
Currently on
core.pyline 2281it should be
This should convert seconds to microseconds to match the
self.timestampand thetime.time_ns() / 1000(nanosecond converted to microseconds)To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Client Information (please complete the following information):
Additional context
Add any other context about the problem here.