mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[KununuBridge] Fix broken page layout and sort reviews
This commit is contained in:
parent
90dc968fd1
commit
bca79d3f88
@ -58,7 +58,7 @@ class KununuBridge extends BridgeAbstract {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::URI . $site . '/' . $company . '/' . $section;
|
return self::URI . $site . '/' . $company . '/' . $section . '?sort=update_time_desc';
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::getURI();
|
return parent::getURI();
|
||||||
@ -190,11 +190,11 @@ class KununuBridge extends BridgeAbstract {
|
|||||||
* Returns the URI from a given article
|
* Returns the URI from a given article
|
||||||
*/
|
*/
|
||||||
private function extractArticleUri($article){
|
private function extractArticleUri($article){
|
||||||
$anchor = $article->find('ku-company-review-more', 0);
|
$anchor = $article->find('h1.review-title a', 0);
|
||||||
if(is_null($anchor))
|
if(is_null($anchor))
|
||||||
returnServerError('Cannot find article URI!');
|
returnServerError('Cannot find article URI!');
|
||||||
|
|
||||||
return self::URI . $anchor->{'review-url'};
|
return self::URI . $anchor->href;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user