NeoLoader Magnet Links for Hoster Downloads

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

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 = 'http://link.neoloader.to/' . $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('http://uploaded.to/file/3gkvtb8h');
$magnet_link = getNeoMagnetLink('NeoLoader Windows Installer', $links);
echo $magnet_link;

Will give you:

Code: Select all

http://link.neoloader.to/magnet:?dn=NeoLoader+Windows+Installer&xs.1=http%3A%2F%2Fuploaded.to%2Ffile%2F3gkvtb8h



Note:
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 2 guests

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