mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[PR #488] [MERGED] Authentication refactor #618
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#618
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?
📋 Pull Request Information
Original PR: https://github.com/sigma67/ytmusicapi/pull/488
Author: @jcbirdwell
Created: 12/17/2023
Status: ✅ Merged
Merged: 12/31/2023
Merged by: @sigma67
Base:
master← Head:alt_auth📝 Commits (10+)
e21492boauth: add support for alternate oauth clientb9be59dget_album_browse_id: fix depreciated escape sequence error && add performance increaseb2c078dget_charts: fix index errors on authorized song chart missingb60af9cadd: set_album_save as a convenience/alias/findable method for album rate_playlist91949b5fix: externalize library dependent or regional arguments to test.cfg6c94c80add: integrate alt_oauth into YTMusic && add: token dict support for auth parameter742f584unadd: set_album_save. unneeded duplicate to rate_playlist10241c7fix: dataclass implementation of credentials9cb8c63minor touch-up: rebuild the entire oauth system8dac2e5fix: new token init📊 Changes
17 files changed (+703 additions, -246 deletions)
View changed files
📝
tests/README.rst(+17 -3)📝
tests/test.cfg.example(+15 -4)📝
tests/test.py(+117 -41)➖
ytmusicapi/auth/headers.py(+0 -48)➖
ytmusicapi/auth/oauth.py(+0 -102)➕
ytmusicapi/auth/oauth/__init__.py(+5 -0)➕
ytmusicapi/auth/oauth/base.py(+134 -0)➕
ytmusicapi/auth/oauth/credentials.py(+123 -0)➕
ytmusicapi/auth/oauth/exceptions.py(+12 -0)➕
ytmusicapi/auth/oauth/models.py(+32 -0)➕
ytmusicapi/auth/oauth/refreshing.py(+91 -0)➕
ytmusicapi/auth/types.py(+25 -0)📝
ytmusicapi/mixins/browsing.py(+2 -1)📝
ytmusicapi/mixins/explore.py(+9 -5)📝
ytmusicapi/mixins/uploads.py(+2 -1)📝
ytmusicapi/setup.py(+16 -3)📝
ytmusicapi/ytmusic.py(+103 -38)📄 Description
This is the implementation of #487. It also fixes some issues I ran across while writing the tests for my proposed feature that were preventing a full pass. I can open issues for each or all together if needed, just let me know. Otherwise, they were:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.