mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-25 05:38:21 +03:00
4f75591060
Reformat code base to PSR12 Co-authored-by: rssbridge <noreply@github.com>
16 lines
445 B
PHP
16 lines
445 B
PHP
<?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);
|
|
}
|
|
}
|