mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 06:56:53 +00:00
Fix to pass travis checks (tabs & whitespaces)
This commit is contained in:
parent
ea81b5039f
commit
61d61cdbe8
@ -7,7 +7,7 @@ class KATBridge extends BridgeAbstract {
|
|||||||
list of keywords by separating them with a semicolon (e.g. "one show;another
|
list of keywords by separating them with a semicolon (e.g. "one show;another
|
||||||
show"). Category based search needs the category number as input. User based
|
show"). Category based search needs the category number as input. User based
|
||||||
search takes the Uploader ID: see KAT URL for user feed. Search can be done in a specified category';
|
search takes the Uploader ID: see KAT URL for user feed. Search can be done in a specified category';
|
||||||
|
|
||||||
const PARAMETERS = array( array(
|
const PARAMETERS = array( array(
|
||||||
'q' => array(
|
'q' => array(
|
||||||
'name' => 'keywords, separated by semicolons',
|
'name' => 'keywords, separated by semicolons',
|
||||||
@ -38,14 +38,14 @@ class KATBridge extends BridgeAbstract {
|
|||||||
));
|
));
|
||||||
public function collectData(){
|
public function collectData(){
|
||||||
function parseDateTimestamp($element){
|
function parseDateTimestamp($element){
|
||||||
$guessedDate = strptime($element, '%d-%m-%Y %H:%M:%S');
|
$guessedDate = strptime($element, '%d-%m-%Y %H:%M:%S');
|
||||||
$timestamp = mktime(
|
$timestamp = mktime(
|
||||||
$guessedDate['tm_hour'],
|
$guessedDate['tm_hour'],
|
||||||
$guessedDate['tm_min'],
|
$guessedDate['tm_min'],
|
||||||
$guessedDate['tm_sec'],
|
$guessedDate['tm_sec'],
|
||||||
$guessedDate['tm_mon'] + 1,
|
$guessedDate['tm_mon'] + 1,
|
||||||
$guessedDate['tm_mday'],
|
$guessedDate['tm_mday'],
|
||||||
$guessedDate['tm_year'] + 1900);
|
$guessedDate['tm_year'] + 1900);
|
||||||
return $timestamp;
|
return $timestamp;
|
||||||
}
|
}
|
||||||
$catBool = $this->getInput('cat_check');
|
$catBool = $this->getInput('cat_check');
|
||||||
@ -64,8 +64,8 @@ class KATBridge extends BridgeAbstract {
|
|||||||
'torrents-search.php?search=' .
|
'torrents-search.php?search=' .
|
||||||
rawurlencode($keywords)
|
rawurlencode($keywords)
|
||||||
) or returnServerError('Could not request KAT.');
|
) or returnServerError('Could not request KAT.');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$html = getSimpleHTMLDOM(
|
$html = getSimpleHTMLDOM(
|
||||||
self::URI .
|
self::URI .
|
||||||
'torrents-search.php?search=' .
|
'torrents-search.php?search=' .
|
||||||
@ -107,7 +107,7 @@ class KATBridge extends BridgeAbstract {
|
|||||||
$item['size'] = $element->find('td', 1)->plaintext;
|
$item['size'] = $element->find('td', 1)->plaintext;
|
||||||
$item['content'] = $item['title']
|
$item['content'] = $item['title']
|
||||||
. '<br>size: '
|
. '<br>size: '
|
||||||
. $item['size']
|
. $item['size']
|
||||||
. '<br>seeders: '
|
. '<br>seeders: '
|
||||||
. $item['seeders']
|
. $item['seeders']
|
||||||
. ' | leechers: '
|
. ' | leechers: '
|
||||||
|
Loading…
Reference in New Issue
Block a user