derivado de blallo/rss-bridge
8ae05a0241
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
36 linhas
816 B
PHP
36 linhas
816 B
PHP
<?php
|
|
require_once('GelbooruBridge.php');
|
|
|
|
class BooruprojectBridge extends GelbooruBridge{
|
|
|
|
const MAINTAINER = "mitsukarenai";
|
|
const NAME = "Booruproject";
|
|
const URI = "http://booru.org/";
|
|
const DESCRIPTION = "Returns images from given page of booruproject";
|
|
|
|
const PARAMETERS = array(
|
|
'global'=>array(
|
|
'p'=>array(
|
|
'name'=>'page',
|
|
'type'=>'number'
|
|
),
|
|
't'=>array('name'=>'tags')
|
|
),
|
|
'Booru subdomain (subdomain.booru.org)'=>array(
|
|
'i'=>array(
|
|
'name'=>'Subdomain',
|
|
'required'=>true
|
|
)
|
|
)
|
|
);
|
|
|
|
const PIDBYPAGE=20;
|
|
|
|
public function getURI(){
|
|
return 'http://'.$this->getInput('i').'.booru.org/';
|
|
}
|
|
|
|
public function getName(){
|
|
return static::NAME . ' ' . $this->getInput('i');
|
|
}
|
|
}
|