diff --git a/code/torrentclientfactory.py b/code/torrentclientfactory.py index a109c26..48387c6 100644 --- a/code/torrentclientfactory.py +++ b/code/torrentclientfactory.py @@ -1,9 +1,9 @@ import random import string -class Transmission292(): +class Transmission300(): def __init__(self, info_hash): - self.name = "Transmission 2.92 (14714)" + self.name = "Transmission 3.00" parameters = {} # urlencoded 20-byte SHA1 hash of the value of the info key from the Metainfo file parameters['info_hash'] = info_hash @@ -23,7 +23,7 @@ class Transmission292(): def get_headers(self): headers = {} - headers['User-Agent'] = 'Transmission/2.92' + headers['User-Agent'] = 'Transmission/3.00' headers['Accept'] = '*/*' headers['Accept-Encoding'] = 'Accept-Encoding: gzip;q=1.0, deflate, identity' return headers @@ -51,7 +51,7 @@ class Transmission292(): def generate_peer_id(self): chars = string.ascii_lowercase + string.digits rand_id = self.id_generator(chars, 12) - peer_id = "-TR2920-" + rand_id + peer_id = "-TR3000-" + rand_id return peer_id def generate_key(self):