implement Gazelle.get_torrent() method

This commit is contained in:
Romain Bignon 2010-05-02 18:55:56 +02:00
commit 2ee1c761ea
4 changed files with 93 additions and 7 deletions

View file

@ -58,6 +58,10 @@ class Weboorrents(ConsoleApplication):
rows.append(('ID', torrent.id))
rows.append(('Name', torrent.name))
rows.append(('Size', torrent.size))
rows.append(('URL', torrent.url))
rows.append(('Seeders', torrent.seeders))
rows.append(('Leechers', torrent.leechers))
rows.append(('Description', torrent.description))
return {backend.name: rows}
@ConsoleApplication.command('Search torrents')