mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 11:56:45 +03:00
Fix deprecation warning on asyncio.get_event_loop()
This commit is contained in:
2
main.py
2
main.py
@@ -146,5 +146,5 @@ def load_config(config_file="config.json"):
|
||||
|
||||
if __name__ == "__main__":
|
||||
atv_config, apikey, categories = load_config()
|
||||
event_loop = asyncio.get_event_loop()
|
||||
event_loop = asyncio.get_event_loop_policy().get_event_loop()
|
||||
event_loop.run_until_complete(loop_atv(event_loop, atv_config, apikey, categories))
|
||||
|
||||
Reference in New Issue
Block a user