Skip to content

Commit

Permalink
fix: fix some typos, undefined properties (merge pull request #121 fr…
Browse files Browse the repository at this point in the history
…om dehlirious/typo)

Fixed a Typo / undefined property
  • Loading branch information
Ahwxorg authored Feb 24, 2024
2 parents 21fdc5d + d5437f0 commit ae10139
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/bittorrent/get_magnet_1337x.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

$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->bittorent_trackers;
$magnet = $magnet_without_tracker . $config->bittorrent_trackers;

header("Location: $magnet")
?>
2 changes: 1 addition & 1 deletion engines/bittorrent/nyaa.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function parse_results($response) {
if ($magnet_node->length > 0) {
$magnet = $magnet_node[0]->textContent;
$magnet_without_tracker = explode("&tr=", $magnet)[0];
$magnet = $magnet_without_tracker . $this->opts->bittorent_trackers;
$magnet = $magnet_without_tracker . $this->opts->bittorrent_trackers;
} else {
$magnet = "";
}
Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function print_page_buttons($type, $query, $page) {
{
$category_index = array_search($category, $categories);

if (($opts->disable_bittorent_search && $category_index == 3) ||
if (($opts->disable_bittorrent_search && $category_index == 3) ||
($opts->disable_hidden_service_search && $category_index ==4))
{
continue;
Expand Down

0 comments on commit ae10139

Please sign in to comment.