mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 02:48:39 +00:00
add get_torrent_name
This commit is contained in:
parent
e16ee523a5
commit
d9d8762c8e
1 changed files with 11 additions and 0 deletions
|
@ -306,6 +306,17 @@ class ConsoleUI(component.Component):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
|
def get_torrent_name(self, torrent_id):
|
||||||
|
if self.interactive and hasattr(self.screen,"get_torrent_name"):
|
||||||
|
return self.screen.get_torrent_name(torrent_id)
|
||||||
|
|
||||||
|
for tid, name in self.torrents:
|
||||||
|
if torrent_id == tid:
|
||||||
|
return name
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def set_batch_write(self, batch):
|
def set_batch_write(self, batch):
|
||||||
# only kept for legacy reasons, don't actually do anything
|
# only kept for legacy reasons, don't actually do anything
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue