File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def _update_status(self) -> None:
3939 )
4040 resp .raise_for_status ()
4141
42- def _download_files (self , files : list ) -> None :
42+ def _download_files (self , files : dict [ int , str ] ) -> None :
4343 for torrent_id , path in files .items ():
4444 resp = requests .get (
4545 f"{ self ._config ['server_host' ]} /api/client/download/{ torrent_id } /" ,
@@ -51,7 +51,7 @@ def _download_files(self, files: list) -> None:
5151 self ._transmission_adapter .add_torrent (resp .content , download_dir = path )
5252 self ._logger .info ("Downloading torrent: %s to %s" , torrent_id , path )
5353
54- def _execute_instructions (self , instructions : list ) -> None :
54+ def _execute_instructions (self , instructions : list [ dict ] ) -> None :
5555 for instruction in instructions :
5656 self ._logger .info ("Received instruction: %s" , instruction )
5757 for action , params in instruction .items ():
You can’t perform that action at this time.
0 commit comments