mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 17:44:48 +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:
parent
b40714079f
commit
f0e5ef0fc5
16 changed files with 57 additions and 100 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue