mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 17:45:40 +03:00
8ae05a0241
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
21 lines
571 B
PHP
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'));
|
|
}
|
|
}
|