tvdb_api icon indicating copy to clipboard operation
tvdb_api copied to clipboard

Request: Custom URL support

Open 13steinj opened this issue 3 years ago • 1 comments

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).

13steinj avatar Nov 01 '20 06:11 13steinj

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 avatar Nov 01 '20 21:11 dbr