2014-05-26 00:30:46 +02:00
|
|
|
<?php
|
2016-09-04 01:19:54 +02:00
|
|
|
require_once('DanbooruBridge.php');
|
|
|
|
|
|
|
|
class GelbooruBridge extends DanbooruBridge{
|
2014-05-26 00:30:46 +02:00
|
|
|
|
2016-08-30 11:23:55 +02:00
|
|
|
const MAINTAINER = "mitsukarenai";
|
|
|
|
const NAME = "Gelbooru";
|
|
|
|
const URI = "http://gelbooru.com/";
|
|
|
|
const DESCRIPTION = "Returns images from given page";
|
2015-11-05 16:50:18 +01:00
|
|
|
|
2016-09-04 01:19:54 +02:00
|
|
|
const PATHTODATA='.thumb';
|
|
|
|
const IDATTRIBUTE='id';
|
2014-05-26 00:30:46 +02:00
|
|
|
|
2016-09-04 01:19:54 +02:00
|
|
|
const PIDBYPAGE=63;
|
2014-05-26 00:30:46 +02:00
|
|
|
|
2016-09-04 01:19:54 +02:00
|
|
|
protected function getFullURI(){
|
|
|
|
return $this->getURI().'index.php?page=post&s=list&'
|
|
|
|
.'&pid='.($this->getInput('p')?($this->getInput('p') -1)*static::PIDBYPAGE:'')
|
|
|
|
.'&tags='.urlencode($this->getInput('t'));
|
2014-05-26 00:30:46 +02:00
|
|
|
}
|
|
|
|
}
|