Skip to content

Add the ability to specify a custom API server#197

Draft
dmunozv04 wants to merge 2 commits intomainfrom
add-custom-api-server
Draft

Add the ability to specify a custom API server#197
dmunozv04 wants to merge 2 commits intomainfrom
add-custom-api-server

Conversation

@dmunozv04
Copy link
Copy Markdown
Owner

@dmunozv04 dmunozv04 commented Oct 16, 2024

Fixes #193

Add the ability to specify a custom SponsorBlock API server. (draft implementation by copilot-workspace)

  • Add a new configuration option api_server in config.json.template to specify the custom API server URL.
  • Remove the hardcoded SponsorBlock_api URL from src/iSponsorBlockTV/constants.py.
  • Update the ApiHelper class in src/iSponsorBlockTV/api_helpers.py to use the api_server configuration option for API calls.
  • Add an option to input a custom API server URL in the CLI setup in src/iSponsorBlockTV/config_setup.py.
  • Add an option to input a custom API server URL in the graphical setup wizard in src/iSponsorBlockTV/setup_wizard.py.
  • Set the default api_server to "https://sponsor.ajay.app" in src/iSponsorBlockTV/helpers.py.

For more details, open the Copilot Workspace session.

dmunozv04 and others added 2 commits October 16, 2024 19:25
Fixes #193

Add the ability to specify a custom SponsorBlock API server. (draft implementation by copilot-workspace)

* Add a new configuration option `api_server` in `config.json.template` to specify the custom API server URL.
* Remove the hardcoded `SponsorBlock_api` URL from `src/iSponsorBlockTV/constants.py`.
* Update the `ApiHelper` class in `src/iSponsorBlockTV/api_helpers.py` to use the `api_server` configuration option for API calls.
* Add an option to input a custom API server URL in the CLI setup in `src/iSponsorBlockTV/config_setup.py`.
* Add an option to input a custom API server URL in the graphical setup wizard in `src/iSponsorBlockTV/setup_wizard.py`.
* Set the default `api_server` to "https://sponsor.ajay.app" in `src/iSponsorBlockTV/helpers.py`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dmunozv04/iSponsorBlockTV/issues/193?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the ability to specify your own API server

1 participant