mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 18:25:35 +02:00
format files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user