Skip to content

Commit

Permalink
Add an user agent on matcher's requests (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya authored Sep 20, 2024
2 parents 92100c7 + 633a02a commit 42b9e07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scanner/providers/kyoo_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def __init__(self) -> None:
async def __aenter__(self):
jsons.set_serializer(lambda x, **_: format_date(x), type[Optional[date | int]])
self.client = ClientSession(
headers={
"User-Agent": "kyoo",
},
json_serialize=lambda *args, **kwargs: jsons.dumps(
*args, key_transformer=jsons.KEY_TRANSFORMER_CAMELCASE, **kwargs
),
Expand Down

0 comments on commit 42b9e07

Please sign in to comment.