mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #491] Fresh tokens are constantly refreshed #365
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#365
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 @heisen273 on GitHub (Dec 18, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/491
Describe the bug
I think there's a typo/mistake in
oauth.load_headers()that causes fresh token constantly refresh itself:Highlighted line will always return
Trueandself.refresh_token()will be executed every time when new request is done.To Reproduce
Steps to reproduce the behavior:
load_headers()methodYTMusicclass and use it 2+ times.