mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 12:01:09 +03:00
16 lines
441 B
PHP
16 lines
441 B
PHP
<?php
|
|
require_once('GelbooruBridge.php');
|
|
|
|
class TbibBridge extends GelbooruBridge {
|
|
|
|
const MAINTAINER = 'mitsukarenai';
|
|
const NAME = 'Tbib';
|
|
const URI = 'https://tbib.org/';
|
|
const DESCRIPTION = 'Returns images from given page';
|
|
|
|
protected function buildThumbnailURI($element){
|
|
$regex = '/\.\w+$/';
|
|
return $this->getURI() . 'thumbnails/' . $element->directory
|
|
. '/thumbnail_' . preg_replace($regex, '.jpg', $element->image);
|
|
}
|
|
}
|