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:
@@ -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 = [
|
||||
|
Reference in New Issue
Block a user