1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-17 14:18:35 +01:00
php-rss-bridge/bridges/SafebooruBridge.php
Yaman Qalieh bb6d553dd5
Revert "refactor: remove unnecesary includes" (#2723)
This reverts commit fd449be4ebb331c6b726f971231a8ec828ab6bd5.
2022-05-12 16:28:03 -04:00

17 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);
}
}