Skip to content

Commit

Permalink
Set unique http User-Agent for thetvdb v4 api
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrdnalor committed Aug 6, 2021
1 parent b763179 commit 9d12abb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mythtv/bindings/python/ttvdbv4/myth4ttvdbv4.py
Expand Up @@ -207,8 +207,7 @@ def __init__(self, **kwargs):

self.session.headers.update({'Accept': 'application/json',
'Accept-Language': self.language,
### XXX ToDo define User Agent
# 'User-Agent': 'mythtv ttvdb4 grabber %s' % __version__,
'User-Agent': 'mythtv.org ttvdb v.4 grabber',
'Authorization': "%s" % (token)
})
# set the session for the tvbd4 api, enable json debug logs
Expand Down

0 comments on commit 9d12abb

Please sign in to comment.