1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-18 06:11:33 +02:00

fix: a bunch of small changes in multiple bridges (#2644)

Mostly refactors.
This commit is contained in:
Dag
2022-04-12 23:37:30 +02:00
committed by GitHub
parent 5b7dd45b20
commit b6e8350596
12 changed files with 81 additions and 46 deletions

View File

@@ -17,7 +17,8 @@ class KununuBridge extends BridgeAbstract {
'Germany' => 'de',
'Switzerland' => 'ch',
'United States' => 'us'
)
),
'exampleValue' => 'de',
),
'full' => array(
'name' => 'Load full article',
@@ -46,7 +47,7 @@ class KununuBridge extends BridgeAbstract {
'company' => array(
'name' => 'Company',
'required' => true,
'exampleValue' => 'kununu-us',
'exampleValue' => 'adesso',
'title' => 'Insert company name (i.e. Kununu US) or URI path (i.e. kununu-us)'
)
)
@@ -72,7 +73,8 @@ class KununuBridge extends BridgeAbstract {
break;
}
return self::URI . $site . '/' . $company . '/' . $section . '?sort=update_time_desc';
$url = sprintf('%s%s/%s/%s?sort=update_time_desc', self::URI, $site, $company, $section);
return $url;
}
return parent::getURI();
@@ -91,6 +93,9 @@ class KununuBridge extends BridgeAbstract {
return 'https://www.kununu.com/favicon-196x196.png';
}
/**
* All css selectors need rework
*/
public function collectData(){
$full = $this->getInput('full');