[PR #688] [MERGED] Add optional parameters for OAuth client ID and secret to setup #701

Closed
opened 2026-02-27 23:02:03 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigma67/ytmusicapi/pull/688
Author: @fischcode
Created: 12/13/2024
Status: Merged
Merged: 12/17/2024
Merged by: @sigma67

Base: mainHead: main


📝 Commits (10+)

  • 980e1c5 Add optional parameters for OAuth client ID and secret to setup
  • bcbcf78 Improve setup parameter parsing and help texts
  • 4bcf935 ruff autofix
  • e971560 wip: remove default oauth_client_id & secret, turn into mandatory params
  • 282ac9d fix yt_oauth fixture
  • 43dca79 Merge remote-tracking branch 'origin/main' into fischcode-main
  • 97c04c8 fix format/lint
  • 9ab9506 Merge remote-tracking branch 'origin/main' into fischcode-main
  • 994574a fix cli args and oauth test
  • 2b86d17 remove skip

📊 Changes

8 files changed (+59 additions, -34 deletions)

View changed files

📝 tests/auth/test_oauth.py (+15 -5)
📝 tests/conftest.py (+6 -2)
📝 tests/test.example.cfg (+2 -0)
📝 ytmusicapi/__init__.py (+1 -1)
📝 ytmusicapi/auth/oauth/credentials.py (+4 -6)
📝 ytmusicapi/constants.py (+0 -2)
📝 ytmusicapi/setup.py (+28 -13)
📝 ytmusicapi/ytmusic.py (+3 -5)

📄 Description

Use your own Google API client ID and client secret in setup by calling ytmusicapi oauth --client_id <your Google API client ID> --client_secret <your Google API client secret> to avoid HTTP 400: Bad Request errors (issue #679 )
See developers.google.com/youtube/registering_an_application for instructions on how to create your own youtube OAuth credentials.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigma67/ytmusicapi/pull/688 **Author:** [@fischcode](https://github.com/fischcode) **Created:** 12/13/2024 **Status:** ✅ Merged **Merged:** 12/17/2024 **Merged by:** [@sigma67](https://github.com/sigma67) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`980e1c5`](https://github.com/sigma67/ytmusicapi/commit/980e1c5fbe1f615ea3ef3fdf93064bb445db9f17) Add optional parameters for OAuth client ID and secret to setup - [`bcbcf78`](https://github.com/sigma67/ytmusicapi/commit/bcbcf78fd6f2e2eeedf67e68144cc04a0a1c074a) Improve setup parameter parsing and help texts - [`4bcf935`](https://github.com/sigma67/ytmusicapi/commit/4bcf93542d4086f18d358d0d3fe36e691821678f) ruff autofix - [`e971560`](https://github.com/sigma67/ytmusicapi/commit/e97156003a380a991851b688dc90bfd42b31a829) wip: remove default oauth_client_id & secret, turn into mandatory params - [`282ac9d`](https://github.com/sigma67/ytmusicapi/commit/282ac9d0427973e0c23886148f4c3329ab9b5be5) fix yt_oauth fixture - [`43dca79`](https://github.com/sigma67/ytmusicapi/commit/43dca79449ed90cefb16619c9b114e183da28bcc) Merge remote-tracking branch 'origin/main' into fischcode-main - [`97c04c8`](https://github.com/sigma67/ytmusicapi/commit/97c04c890530a46fae826feed5ab46f1d17b058f) fix format/lint - [`9ab9506`](https://github.com/sigma67/ytmusicapi/commit/9ab95068f3d28ea92f33f85d1a0cb0c2756dc38a) Merge remote-tracking branch 'origin/main' into fischcode-main - [`994574a`](https://github.com/sigma67/ytmusicapi/commit/994574ad142cd35e8240776f41fadc7e4084993b) fix cli args and oauth test - [`2b86d17`](https://github.com/sigma67/ytmusicapi/commit/2b86d17212dcf334527a046ae28dc7a34780cf25) remove skip ### 📊 Changes **8 files changed** (+59 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `tests/auth/test_oauth.py` (+15 -5) 📝 `tests/conftest.py` (+6 -2) 📝 `tests/test.example.cfg` (+2 -0) 📝 `ytmusicapi/__init__.py` (+1 -1) 📝 `ytmusicapi/auth/oauth/credentials.py` (+4 -6) 📝 `ytmusicapi/constants.py` (+0 -2) 📝 `ytmusicapi/setup.py` (+28 -13) 📝 `ytmusicapi/ytmusic.py` (+3 -5) </details> ### 📄 Description Use your own Google API client ID and client secret in setup by calling `ytmusicapi oauth --client_id <your Google API client ID> --client_secret <your Google API client secret>` to avoid HTTP 400: Bad Request errors (issue #679 ) See [developers.google.com/youtube/registering_an_application](https://developers.google.com/youtube/registering_an_application) for instructions on how to create your own youtube OAuth credentials. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 23:02:03 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#701
No description provided.