1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +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,7 +76,7 @@ class UnogsBridge extends BridgeAbstract
if ($this->queriedContext == 'Global') {
$feedName .= 'Netflix Global - ';
} elseif ($this->queriedContext == 'Country') {
$feedName .= 'Netflix ' . $this->getParametersKey('country_code') . ' - ';
$feedName .= 'Netflix ' . $this->getKey('country_code') . ' - ';
}
if ($this->getInput('feed') == 'expiring') {
$feedName .= 'Expiring title';
@@ -88,20 +88,6 @@ class UnogsBridge extends BridgeAbstract
return $feedName;
}
private function getParametersKey($input = '')
{
$params = $this->getParameters();
$tab = 'Country';
if (!isset($params[$tab][$input])) {
return '';
}
return array_search(
$this->getInput($input),
$params[$tab][$input]['values']
);
}
private function getJSON($url)
{
$header = [