Files
MediaFusion/api/task.py
T
2024-02-10 07:49:42 +05:30

17 lines
415 B
Python

# import background actors
import asyncio
from db import database
from scrapers.helpers import update_torrent_movie_streams_metadata # noqa: F401
from scrapers.prowlarr import parse_and_store_movie_stream_data # noqa: F401
from utils import torrent
async def async_setup():
# Your async initialization code here
await torrent.init_best_trackers()
await database.init()
asyncio.run(async_setup())