Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Updated to HTTPS URLs for upstream objects
Browse files Browse the repository at this point in the history
  • Loading branch information
tombazza committed Feb 16, 2016
1 parent a860555 commit 405d1d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/Data/Kat.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getData($query, $page = 1) {
// files: #torrent_files tr

public function getTorrentMeta($torrentId) {
$url = 'http://'.$this->domainName.'/'.$torrentId.'.html';
$url = 'https://'.$this->domainName.'/'.$torrentId.'.html';
$data = $this->retreiveData($url, self::FORMAT_PLAIN);
$meta = array(
'comments' => $this->getComments($data),
Expand Down
6 changes: 3 additions & 3 deletions includes/Data/Piratebay.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getTorrentMeta($torrentId) {
}

private function getComments($torrentId) {
$url = 'http://'.$this->domain.'/ajax_details_comments.php';
$url = 'https://'.$this->domain.'/ajax_details_comments.php';
$post = array(
'id' => $torrentId,
'page' => '1'
Expand All @@ -135,7 +135,7 @@ private function getComments($torrentId) {
}

private function getFileListing($torrentId) {
$url = 'http://'.$this->domain.'/ajax_details_filelist.php?id='. $torrentId;
$url = 'https://'.$this->domain.'/ajax_details_filelist.php?id='. $torrentId;
$data = $this->retreiveData($url, self::FORMAT_PLAIN);
$dom = new Query($data);
$results = $dom->execute('tr');
Expand Down Expand Up @@ -185,7 +185,7 @@ private function convertFileSize($size) {

private function buildUrl($query, $page = 0, $sortField = self::SORT_SEEDS, $sortOrder = self::SORT_DESC) {
$sortValue = ($this->sortFields[$sortField] + $sortOrder);
$url = 'http://'.$this->domain.'/search/' . urlencode($query) . '/' . $page . '/' . $sortValue;
$url = 'https://'.$this->domain.'/search/' . urlencode($query) . '/' . $page . '/' . $sortValue;
return $url;
}
}

0 comments on commit 405d1d4

Please sign in to comment.