Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
php:magnyaa [2012-10-15 22:39] – mitsu | php:magnyaa [2014-09-07 13:14] (Version actuelle) – [[ Download ]] mitsu |
---|
---- | ---- |
**Status: 1.0 "The Internet Is Made Of Cats, Nyaa~ !" released; pausing ** | **Status: 1.0 "The Internet Is Made Of Cats, Nyaa~ !" released; pausing ** |
| |
Test Browser: [[http://www.magnyaa.eu/|main]] / [[http://sukebei.magnyaa.eu/|sukebei]] | |
| |
[[http://engine.magnyaa.eu/|Test Engine]] | |
| |
[[#download|Jump to downloads]] | [[#download|Jump to downloads]] |
* {{:php:magnyaa_browser_1.0.zip|Magnyaa Browser 1.0}} | * {{:php:magnyaa_browser_1.0.zip|Magnyaa Browser 1.0}} |
* {{:php:magnyaa_engine_1.0.zip|Magnyaa Engine 1.0}} | * {{:php:magnyaa_engine_1.0.zip|Magnyaa Engine 1.0}} |
* [[http://wiki.suumitsu.eu/upload/magnyaa_databases_20121016.7z|Magnyaa Engine SQLite3 databases 20121016]] | |
* {{:php:nyaa_feeder.zip|Magnyaa Engine Feeders 1.0}} | * {{:php:nyaa_feeder.zip|Magnyaa Engine Feeders 1.0}} |
| |
data_#/{4 digits}.db: contains torrent data, up to 1000 elements | data_#/{4 digits}.db: contains torrent data, up to 1000 elements |
| |
As for now, # is "m" for main and "s" for sukebei. Data is stored and fetched in databases named like: torrent id divided by 1000; padded to 4 digits to the left with zeros. For example, "351540" would be in table "0351.db". This provides space for over 9 million torrent informations, more than a century time at Nyaa's actual pace ;-) | As for now, # is "m" for main and "s" for sukebei. Data is stored and fetched in databases named like: torrent id divided by 1000; padded to 4 digits to the left with zeros. For example, "351540" would be in database "0351.db". This provides space for over 9 million torrent informations, more than a century time at Nyaa's actual pace ;-) |
| |
---- | ---- |
Note: if {id} is starting with "s", the considered instance is "sukebei". Else, "main". | Note: if {id} is starting with "s", the considered instance is "sukebei". Else, "main". |
| |
//no query//: empty page | //no query//: empty page (actually useful: the HTTP header "X-Magnyaa: engineX" that tells Browser it's an Engine and it is of version X) |
| |
//?nyaaid={id}//: check if existing database, load it, SELECT the {id}, parse data, output in JSON | //?nyaaid={id}//: check if existing database, load it, SELECT the {id}, parse data, output in JSON |