def __init__(self, qbt, torrent_dict): self._torrent_dict = torrent_dict self._qbt = qbt self.refresh_properties(refresh_torrent_dict=False) self.actions_keyboard = kb.actions_markup(self.hash)
def __init__(self, qbt, torrent_dict: dict, get_torrent_generic_properties: bool = False): self._torrent_dict: dict = torrent_dict self._qbt: CustomClient = qbt self.hash = self._torrent_dict['hash'] self.refresh( get_torrent_generic_properties=get_torrent_generic_properties, refresh_torrent_dict=False ) self.actions_keyboard = kb.actions_markup(self.hash)