aboutsummaryrefslogtreecommitdiff
path: root/bridges/TbibBridge.php
blob: 509b1e1155bc214f1efaf4c11e1048a37f7f704b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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);
	}
}