Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Custom URL support #88

Open
13steinj opened this issue Nov 1, 2020 · 1 comment
Open

Request: Custom URL support #88

13steinj opened this issue Nov 1, 2020 · 1 comment
Milestone

Comments

@13steinj
Copy link

13steinj commented Nov 1, 2020

This should be a simple one-- there are several services that proxy and cache thetvdb (one such is Plex). They use the exact same API, forwarding uncached requests, however cache the request every 2 days / when requested (whichever is later).

@dbr
Copy link
Owner

dbr commented Nov 1, 2020

That's a good idea. Currently you can do this in a semi-reasonable way by changing the config keys:

t = tvdb_api.Tvdb(...)
t.config['api_url'] = "https://api.thetvdb.com"

(there is also a base_url and url_artworkPrefix keys, which would need to be changed if you are also using the banner URLs etc - I'll tidy this up for the next release)

I'll make this into an init arg to Tvdb(...) in the next release to make this more explicitly supported

@dbr dbr added the improvement label Nov 1, 2020
@dbr dbr added this to the v3.1 milestone Nov 1, 2020
@dbr dbr modified the milestones: v3.1, v3.2 Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants