oxlib->ox, oxweb->ox.web

This commit is contained in:
j 2010-07-08 00:46:41 +02:00
commit 1bb16bb703
7 changed files with 34 additions and 34 deletions

View file

@ -7,7 +7,7 @@ import base64
from subprocess import Popen
from django.conf import settings
import oxlib.torrent
import ox.torrent
import transmissionrpc
def connect():
@ -32,7 +32,7 @@ def add(torrent_file):
download_dir = os.path.dirname(torrent_file)
with open(torrent_file) as f:
torrent_data = base64.b64encode(f.read())
info_hash = oxlib.torrent.getInfoHash(torrent_file)
info_hash = ox.torrent.getInfoHash(torrent_file)
try:
tc = connect()
if not is_seeding(info_hash):