You can generate NeoLoader Magnet links for any hoster link by using the following PHP function:
Example call:
Will give you:
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.
Code:
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:
$links = array('http://uploaded.to/file/3gkvtb8h');
$magnet_link = getNeoMagnetLink('NeoLoader Windows Installer', $links);
echo $magnet_link;
Code:
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.