Skip to content

Commit

Permalink
Use https for kickass
Browse files Browse the repository at this point in the history
  • Loading branch information
FlixtorMe committed Sep 10, 2014
1 parent b89a6b1 commit b4876f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Based with the peerflix module and mixed with services. All of this packaged wit
![Alt text](http://i.imgur.com/tDeJw0B.png "Flixtor - Torrent sction")

## Latest build
Flixtor 2.2.0
Flixtor 2.2.1

## Websites
[Flixtor](http://www.flixtor.me)
Expand Down
10 changes: 5 additions & 5 deletions js/kickasstorrents/kickasstorrents.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var http = require('http'),
var https = require('https'),
$ = require('cheerio'),
host = 'kickass.to';

Expand All @@ -10,12 +10,12 @@ exports.scrape = function(category, query, field, page, callback){
page = 1;
}
var gunzip = require('zlib').createGunzip();
var req = http.request({
var req = https.request({
host: host,
port: 80,
port: 443,
path: '/usearch/'+encodeURIComponent(query)+'%20category:'+category+'/'+page+'/?field='+field+'&sorder=desc',
method: 'GET',
headers: { 'user-agent': 'Mozilla/5.0', 'Accept-Encoding': 'gzip' }
headers: { 'user-agent': 'Mozilla/5.0', 'accept-encoding': 'gzip' }
});
req.on('response', function(response){
var data = '';
Expand All @@ -39,7 +39,7 @@ exports.scrape = function(category, query, field, page, callback){
size_arr = size.split(' ');
torrents.push({
count: count,
link: 'http://'+host+cell.children('.torrentname').children('.normalgrey').attr('href'),
link: 'https://'+host+cell.children('.torrentname').children('.normalgrey').attr('href'),
title: title,
hash: hash.toString(),
size: Math.ceil(size_arr[1] == 'GB' ? parseFloat(size_arr[0]) * 1024 * 1024 * 1024 : (size_arr[1] == 'MB' ? parseFloat(size_arr[0]) * 1024 * 1024 : parseFloat(size_arr[0]))),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "app://host/frames/movies.html",
"name": "Flixtor",
"description": "Movie and serie streamer",
"version": "2.2.0",
"version": "2.2.1",
"repository": {
"type": "git",
"url": "git://github.com/FlixtorMe/FlixtorMe.git"
Expand Down

0 comments on commit b4876f7

Please sign in to comment.