NeoLoader Magnet Links for Hoster Downloads

User avatar
Site Admin
Posts: 37
Joined: Fri Feb 27, 2009 11:38 pm

NeoLoader Magnet Links for Hoster Downloads

Postby Ekliptor » Mon Jul 30, 2012 12:10 am

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.

Return to “Erweiterungen”

Who is online

Users browsing this forum: No registered users and 1 guest

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