format files

This commit is contained in:
maxDorninger
2025-07-09 23:54:51 +02:00
parent 5fd563944f
commit 28349641c0
6 changed files with 221 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
from abc import ABC, abstractmethod
from media_manager.indexer.schemas import IndexerQueryResult
from media_manager.torrent.schemas import TorrentId, TorrentStatus, Torrent
from media_manager.torrent.schemas import TorrentStatus, Torrent
class AbstractDownloadClient(ABC):
@@ -38,4 +38,22 @@ class AbstractDownloadClient(ABC):
:param torrent: The torrent to get the status of.
:return: The status of the torrent.
"""
pass
pass
@abstractmethod
def pause_torrent(self, torrent: Torrent) -> None:
"""
Pause a torrent download.
:param torrent: The torrent to pause.
"""
pass
@abstractmethod
def resume_torrent(self, torrent: Torrent) -> None:
"""
Resume a torrent download.
:param torrent: The torrent to resume.
"""
pass