1
0
Fork 0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2024-12-23 04:42:46 +03:00
rss-bridge/bridges/SafebooruBridge.php
Dag 4f75591060
Reformat codebase v4 ()
Reformat code base to PSR12

Co-authored-by: rssbridge <noreply@github.com>
2022-07-01 15:10:30 +02:00

16 lines
460 B
PHP

<?php
class SafebooruBridge extends GelbooruBridge
{
const MAINTAINER = 'mitsukarenai';
const NAME = 'Safebooru';
const URI = 'https://safebooru.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);
}
}