mirror of
https://git.bakhai.co.in/FbIN/LibreY.git
synced 2025-11-07 21:00:07 +05:30
commit
c9898cf261
95 changed files with 5217 additions and 0 deletions
15
engines/bittorrent/get_magnet_1337x.php
Normal file
15
engines/bittorrent/get_magnet_1337x.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
require_once "../../misc/tools.php";
|
||||
$config = require_once "../../config.php";
|
||||
|
||||
$url = $_REQUEST["url"];
|
||||
|
||||
$response = request($url, $config->curl_settings);
|
||||
$xpath = get_xpath($response);
|
||||
|
||||
$magnet = $xpath->query("//main/div/div/div/div/div/ul/li/a/@href")[0]->textContent;
|
||||
$magnet_without_tracker = explode("&tr=", $magnet)[0];
|
||||
$magnet = $magnet_without_tracker . $config->bittorrent_trackers;
|
||||
|
||||
header("Location: $magnet")
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue