1
0
Fork 0
forked from blallo/rss-bridge
rss-bridge/bridges/GelbooruBridge.php
Pierre Mazière 8ae05a0241 [bridges] Gelbooru based imageboards derive form DanbooruBridge
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-04 01:27:58 +02:00

21 lines
571 B
PHP

<?php
require_once('DanbooruBridge.php');
class GelbooruBridge extends DanbooruBridge{
const MAINTAINER = "mitsukarenai";
const NAME = "Gelbooru";
const URI = "http://gelbooru.com/";
const DESCRIPTION = "Returns images from given page";
const PATHTODATA='.thumb';
const IDATTRIBUTE='id';
const PIDBYPAGE=63;
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'));
}
}