mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add an user agent on matcher's requests
This commit is contained in:
parent
92100c7c43
commit
633a02af06
@ -26,6 +26,9 @@ class KyooClient:
|
||||
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
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user