crunpyroll
crunpyroll copied to clipboard
session expires after 5 minutes
the session seems to expire after 5 minutes
I tried to do a test by adding a 6 minute sleep to the code provided as an example
code:
async def main(): # Start client and login await client.start() await asyncio.sleep(360) # Search for Attack on Titan query = await client.search("Attack On Titan") series_id = query.items[0].id print(series_id) # Retrieve all seasons of the series seasons = await client.get_seasons(series_id) print(seasons)
asyncio.run(main())
output:
Traceback (most recent call last):
File "/root/test.py", line 25, in
I tried adding a print to "{self.expiration}" in the "authorize" function in the "session.py" file to see the expiration of the session at the time of authentication and apparently the session always lasts 5 minutes
Thank you for your feedback. This issue shpuld be resolved in 2.3.3. Please, update the library and try again.