platypush/plugins/torrent/__init__.py
def remove(self, torrent):
        """
        Stops and removes a torrent transfer.

        :param torrent: Torrent URL as returned from `get_status()`
        :type torrent: str
        """

        if torrent not in self.transfers:
            return None, "No transfer in progress for {}".format(torrent)

        self.transfers[torrent].pause()
        del self.torrent_state[torrent]
        del self.transfers[torrent]

        if torrent in self._sessions:
            del self._sessions[torrent]

        Stops and removes a torrent transfer.

        :param torrent: Torrent URL as returned from `get_status()`
        :type torrent: str
        
Stops and removes a torrent transfer.
Stops and removes a torrent transfer .
def remove(self, torrent):
        if torrent not in self.transfers:
            return None, "No transfer in progress for {}".format(torrent)
        self.transfers[torrent].pause()
        del self.torrent_state[torrent]
        del self.transfers[torrent]
        if torrent in self._sessions:
            del self._sessions[torrent]
def remove ( self , torrent ) : if torrent not in self . transfers : return None , "No transfer in progress for {}" . format ( torrent ) self . transfers [ torrent ] . pause ( ) del self . torrent_state [ torrent ] del self . transfers [ torrent ] if torrent in self . _sessions : del self . _sessions [ torrent ]
Stops and removes a torrent transfer.
Stops and removes a torrent transfer .
"""
        Stops and removes a torrent transfer.

        :param torrent: Torrent URL as returned from `get_status()`
        :type torrent: str
        """
self
torrent
Torrent URL as returned from `get_status()`
Torrent URL as returned from ` get_status () `