Dokifansubs / anidex_www

Front end for anidex.moe
0 stars 0 forks source link

Rest Endpoint to support UDP Completed and Whitelist. #32

Open DeathHere opened 10 years ago

DeathHere commented 10 years ago

Need 2 endpoints. Change the url to what u want... but here is the basic requirement.

UDP Completed: Example: anidex.moe/complete?hash=baa705da338ccb99abc2fe1be11263a9c119d8be Will increment the completed counter of the torrent. (Open Question: What happens when we have hash collisions on torrents?)

Whitelist: All torrent hashes added after a certain unix timestamp. Example: anidex.moe/whitelist?t=1409252650 Response in plain text: baa705da338ccb99abc2fe1be11263a9c119d8be 9dcac394b0ba83e2c3799bcbef85d97dc086cb75 ...

I will update my UDP tracker to call these to get a whitelist and to push completed into our MySQL db.

Orillion360 commented 10 years ago

Secure with private key? What happens when a random user posts to that URL?

DeathHere commented 10 years ago

We can, I can also spam http requests on a normal tracker and it would do the same thing. Hence why I think completed is a terrible stat.

Orillion360 commented 10 years ago

Deathere added whitelist for new torrents. Added blacklist for removed torrents. - Probably should use another name

Orillion360 commented 10 years ago

What happens if the torrent tracker and torrent front end are disconnected for longer than the interval time?

Orillion360 commented 10 years ago

Blacklist removed due to racism complaints. Also it's unneeded. Torrent tracker will just refresh everything every 15 minutes, also solving previous question.