1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-30 19:40:00 +02:00

[Various] getKey replacements and docu (#3283)

* [Various] getKey replacements and docu

* more bridges and fix to the abstract

* linting

* revert bandcampdaily. doing more than i thought
This commit is contained in:
Bocki
2023-03-06 20:01:51 +01:00
committed by GitHub
parent b40714079f
commit f0e5ef0fc5
16 changed files with 57 additions and 100 deletions

View File

@@ -76,11 +76,7 @@ class PixivBridge extends BridgeAbstract
default:
return parent::getName();
}
$mode = array_search(
$this->getInput('mode'),
self::PARAMETERS['global']['mode']['values']
);
return "Pixiv ${mode} from ${context} ${query}";
return 'Pixiv ' . $this->getKey('mode') . " from ${context} ${query}";
}
public function getURI()
@@ -149,7 +145,6 @@ class PixivBridge extends BridgeAbstract
public function collectData()
{
$content = $this->collectWorksArray();
$content = array_filter($content, function ($v, $k) {
return !array_key_exists('isAdContainer', $v);
}, ARRAY_FILTER_USE_BOTH);