Status: development stopped
IMPORTANT: Magnesia is no longer developed ! Using it in a production environment is strongly unwise and difficult.
The new project is called Magnyaa. Don't waste more time on this page
Magnesia r3 “Mit Viel Oktan und Frei von Blei”
Magnesia r2 “Lumen Per Lux”
Magnesia r1 “Back To Basic World Domination”
At first Magnesia was a fork of Magnetik Nyaatorrents, but since it works so well it became the main project. The goal remains the same: provide a lightweight database mirror for a torrent index, Nyaatorrents, using magnet links. This can be useful in many scenarios, from website DDoS to state censorship.
Magnesia r1: upload, build/retrieve database, place it, profit.
In the packages there are “READMEs”. Read them
You don't HAVE to build a database, you can simply download an export.zip from another trustworthy Magnesia mirror, rename it “data.zip” and extract it on your Magnesia mirror (using “zipper.php”). If you want to build your own database, get the “feeders” and use them on a GNU/Linux system (make sure to read the README ! ).
This software is provided “as-is”, without any warranties. The author of this software doesn't encourage counterfeit content distribution. The author cannot be held liable of any misuse of this software. The code is neutral, only a human can do illegal things with it. It is the user's sole responsibility for downloading and sharing illegal content. The information returned by the database can be inaccurate, obsolete or plain fake: automated processes can't always succeed. To comply with some countries' laws, the hostmaster can be asked to remove manually any information about an obviously illegal torrent in the database.
Magnesia, published under Creative Commons by-sa by Mitsu.
* included: torrent-rw, published under GNU GPL by Adrien Gibrat: https://github.com/adriengibrat/torrent-rw/
Bug report, feature requests, love declarations ? Head over here:
User calls:
Navigation:
HTML shell:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>{title}</title> <meta name="description" content="{description}"> <meta name="robots" content="index, follow"> <style type="text/css">{css}</style> </head> <body> <h1>{title h1}</h1> <h2>{title h2}</h2> <h3>{pagetype h3}</h3> <form method="get" id="search" action="https://duckduckgo.com/"> <input type="hidden" name="sites" value="{servername}"> <input type="text" name="q" maxlength="255" placeholder="Search with DuckDuckGo…"> <input type="submit" value="Search"> </form> <br> {content} {footer} </body> </html>
Data file structures:
Info shell:
<?php $tid{nyaaid} = array('name'=>'{urlencode_name}','tname'=>'{urlencode_torrentname}','tsize'=>'{size in bytes}','btih'=>'{Bittorrent infohash}','cat'=>'{category}','add'=>'{torrent submission timestamp}','sub'=>'{submitter nickname}'); ?>
Info example:
<?php $tid103115 = array('name'=>'2NE1%20%2d%20Fire%20%28Space%20ver%2e%29%2e720p%2eHDTV%2ex264%2dUAC%2emkv','tname'=>'2NE1%20%2d%20Fire%20%28Space%20ver%2e%29%2e720p%2eHDTV%2ex264%2dUAC%2emkv','tsize'=>'307605735','btih'=>'a6638c86cf11aa6fd825b40f13ad005bfcf3d7c9','cat'=>'Live Action Promotional Video','add'=>'1260489300','sub'=>'KoichiX'); ?>
Stat shell:
<?php $tidstat{nyaaid} = array('se'=>'{seeders}','le'=>'{leechers}','dl'=>'{downloads}','up'=>'{update timestamp}'); ?>
Stat example:
<?php $tidstat113015 = array('se'=>'0','le'=>'0','dl'=>'7213','up'=>'1339779393'); ?>