1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00
Rare/rare/utils/models.py
ChemicalXandco da8ef8dab8
Add stop download button (#33)
Add stop download button
Not a perfect solution, but it should work
2021-04-11 17:03:55 +02:00

16 lines
546 B
Python

import os
class InstallOptions:
def __init__(self, app_name: str, path: str = os.path.expanduser("~/legendary"),
max_workers: int = os.cpu_count() * 2, repair: bool = False,
download_only: bool = False, ignore_free_space: bool = False, force: bool = False):
self.app_name = app_name
self.path = path
self.max_workers = max_workers
self.repair = repair
self.download_only = download_only
self.ignore_free_space = ignore_free_space
self.force = force