|
@@ -10,6 +10,7 @@ class GelbooruBridge extends DanbooruBridge {
|
|
|
|
|
|
const PATHTODATA = '.thumb';
|
|
|
const IDATTRIBUTE = 'id';
|
|
|
+ const TAGATTRIBUTE = 'title';
|
|
|
|
|
|
const PIDBYPAGE = 63;
|
|
|
|
|
@@ -19,4 +20,16 @@ class GelbooruBridge extends DanbooruBridge {
|
|
|
. ($this->getInput('p') ? ($this->getInput('p') - 1) * static::PIDBYPAGE : '')
|
|
|
. '&tags=' . urlencode($this->getInput('t'));
|
|
|
}
|
|
|
+
|
|
|
+ protected function getTags($element){
|
|
|
+ $tags = parent::getTags($element);
|
|
|
+ $tags = explode(' ', $tags);
|
|
|
+
|
|
|
+ // Remove statistics from the tags list (identified by colon)
|
|
|
+ foreach($tags as $key => $tag) {
|
|
|
+ if(strpos($tag, ':') !== false) unset($tags[$key]);
|
|
|
+ }
|
|
|
+
|
|
|
+ return implode(' ', $tags);
|
|
|
+ }
|
|
|
}
|