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