mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-21 07:38:10 +00:00
25 lines
571 B
Python
25 lines
571 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 pytorrent
|
|
from time import sleep
|
|
|
|
pytorrent.init("PT", 0, 5, 0, 0, "pytorrent - testing only")
|
|
|
|
myTorrent = pytorrent.add_torrent("ubuntu.torrent", ".", True)
|
|
|
|
while True:
|
|
print "STATE:"
|
|
print pytorrent.get_state(myTorrent)
|
|
print ""
|
|
|
|
sleep(1)
|