LibreY- privacy respecting meta search engine |
git clone git://git.acid.vegas/LibreY.git |
Log | Files | Refs | Archive | README | LICENSE |
get_magnet_1337x.php (463B)
1 <?php 2 require "../../misc/tools.php"; 3 $config = require "../../config.php"; 4 5 $url = $_REQUEST["url"]; 6 7 $response = request($url, $config->curl_settings); 8 $xpath = get_xpath($response); 9 10 $magnet = $xpath->query("//main/div/div/div/div/div/ul/li/a/@href")[0]->textContent; 11 $magnet_without_tracker = explode("&tr=", $magnet)[0]; 12 $magnet = $magnet_without_tracker . $config->bittorent_trackers; 13 14 header("Location: $magnet") 15 ?>