def save_torrent(self, link, target, title):
    torrent = urllib.urlopen(link)
    if (torrent.getcode() != 200):
        log(('Error ' + torrent.getcode()))
        return False
    with open(os.path.join(target, (title + '.torrent')), 'w') as out:
        out.write(torrent.read())
    return True
def save_torrent(self, link, target, title):
    torrent = urllib.urlopen(link)
    if (torrent.getcode() != 200):
        log(('Error ' + torrent.getcode()))
        return False
    with open(os.path.join(target, (title + '.torrent')), 'w') as out:
        out.write(torrent.read())
    return True