mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 11:26:31 +03:00
bb6d553dd5
This reverts commit fd449be4eb
.
16 lines
456 B
PHP
16 lines
456 B
PHP
<?php
|
|
require_once('GelbooruBridge.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);
|
|
}
|
|
}
|