Re: Request: Command line controls
Posted: Fri Sep 14, 2007 10:29 pm
I just installed it from source and its working, yay
I also tried editing your list command to tidy the output up but failed terribly, does the line self.server.core.get_core_torrent_state(torrentID) return an array? I tried something like this:
torrents = self.server.core.get_core_torrent_state(torrentID)
self.privateMessage("Seeding %s" % str(torrents['is_seed']))
Coming from php programing i thought it might work, but it complains about int's and strings and i gave up lol. Sorry for all the questions but its the only way i will learn

I also tried editing your list command to tidy the output up but failed terribly, does the line self.server.core.get_core_torrent_state(torrentID) return an array? I tried something like this:
torrents = self.server.core.get_core_torrent_state(torrentID)
self.privateMessage("Seeding %s" % str(torrents['is_seed']))
Coming from php programing i thought it might work, but it complains about int's and strings and i gave up lol. Sorry for all the questions but its the only way i will learn