mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-19 15:59:57 +00:00
25 lines
506 B
Python
25 lines
506 B
Python
#/*
|
|
#Copyright: A. Zakai ('Kripken') <kripkensteiner@gmail.com> http://6thsenseless.blogspot.com
|
|
#
|
|
#2006-15-9
|
|
#
|
|
#This code is licensed under the terms of the GNU General Public License (GPL),
|
|
#version 2 or above; See /usr/share/common-licenses/GPL , or see
|
|
#http://www.fsf.org/licensing/licenses/gpl.html
|
|
#*/
|
|
|
|
|
|
import torrent
|
|
from time import sleep
|
|
|
|
torrent.init()
|
|
|
|
myTorrent = torrent.addTorrent("ubuntu.torrent")
|
|
|
|
while True:
|
|
print "STATE:"
|
|
print torrent.getState(myTorrent)
|
|
print ""
|
|
|
|
sleep(1)
|