This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Adding trackers.
Perale Thomas edited this page Jun 15, 2015
·
6 revisions
-
New trackers must be placed in the src/trackers/
-
Into that class you must place a class with the same name of the class.
-
That class must have two specific methods:
-
def search_torrent(self, searchTerms):
To search trough the site and return a specific dictionary structered like this:
{"New website name": [{"link": "...",
"title": "...",
"size": "...",
"seeds": "...",
"peers": "...",
},
{"link": "...",
"title": "...",
"size": "...",
"seeds": "...",
"peers": "..."
}, ....
]
}
NB: The list returned should sort dictionary according to the number of seeders (biggest number on the left). Nb: Every dictionary entries are strings.
-
def get_magnet(self, pageLink):
Return a magnet link (magnet:...)