refactor download client class

This commit is contained in:
maxDorninger
2025-03-27 18:44:14 +01:00
parent 450514f549
commit 89f53040ed
4 changed files with 17 additions and 13 deletions

View File

@@ -1,10 +1,10 @@
from config import DownloadClientConfig
from dowloadClients.config import DownloadClientConfig
from dowloadClients.qbittorrent import QbittorrentClient
config = DownloadClientConfig()
# TODO: add more elif when implementing more download clients
if config.client == "qbit":
if config.download_client == "qbit":
client = QbittorrentClient()
else:
client = QbittorrentClient()
raise ValueError("Unknown download client")