2014-05-26 02:30:46 +04:00
|
|
|
<?php
|
2016-09-04 02:19:54 +03:00
|
|
|
require_once('GelbooruBridge.php');
|
|
|
|
|
|
|
|
class BooruprojectBridge extends GelbooruBridge{
|
2014-05-26 02:30:46 +04:00
|
|
|
|
2016-08-30 12:23:55 +03:00
|
|
|
const MAINTAINER = "mitsukarenai";
|
|
|
|
const NAME = "Booruproject";
|
|
|
|
const URI = "http://booru.org/";
|
2016-09-04 02:19:54 +03:00
|
|
|
const DESCRIPTION = "Returns images from given page of booruproject";
|
2016-08-28 13:14:36 +03:00
|
|
|
|
2016-09-04 02:19:54 +03:00
|
|
|
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
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
2014-05-26 02:30:46 +04:00
|
|
|
|
2016-09-04 02:19:54 +03:00
|
|
|
const PIDBYPAGE=20;
|
2014-05-26 02:30:46 +04:00
|
|
|
|
2016-09-04 02:19:54 +03:00
|
|
|
public function getURI(){
|
|
|
|
return 'http://'.$this->getInput('i').'.booru.org/';
|
2014-05-26 02:30:46 +04:00
|
|
|
}
|
|
|
|
|
2016-09-04 02:19:54 +03:00
|
|
|
public function getName(){
|
|
|
|
return static::NAME . ' ' . $this->getInput('i');
|
2014-05-26 02:30:46 +04:00
|
|
|
}
|
|
|
|
}
|