Page 1 of 1

NeoLoader Magnet Links for Hoster Downloads

Posted: Mon Jul 30, 2012 12:10 am
by Ekliptor
You can generate NeoLoader Magnet links for any hoster link by using the following PHP function:

Code: Select all

function getNeoMagnetLink($file_name, $link_array, $with_neo_domain = true) {
    $link = 'magnet:?dn=' . urlencode($file_name);
    if ($with_neo_domain)
        $link = '' . $link;
    for ($i = 0; $i < count($link_array); $i++)
        $link .= '&xs.' . ($i+1) . '=' . urlencode($link_array[$i]);
    return $link;

Example call:

Code: Select all

$links = array('');
$magnet_link = getNeoMagnetLink('NeoLoader Windows Installer', $links);
echo $magnet_link;

Will give you:

Code: Select all

Using the "Get Link" Feature of a NeoLoader will give you Magnet Links with more information like file hashes, file size, etc... If the files you want to link are stored on your local hard drive you, you should use a NeoLoader to generate these links. However, in case you just have some hoster links the code above will be perfectly fine to create a collection of links for a specific file name.

Fatal: Not able to open ./cache/data_global.php