0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-30 07:15:43 +00:00

[AtmoOccitanieBridge] fix change on index calculation and add missing text

This commit is contained in:
Florent VIOLLEAU 2024-12-09 01:17:15 +01:00
parent 4685bbdffd
commit 310e918baa

View File

@ -43,13 +43,13 @@ class AtmoOccitanieBridge extends BridgeAbstract
$indice = $lastRecommendationsDom->find('.current-indice .indice div', 0)->innertext;
$informationDescriptionMessage = $lastRecommendationsDom->find('.current-indice .description p', 0)->innertext;
$message = "$generalMessage L'indice est de $indice/10. $informationDescriptionMessage. $recommendationsMessage";
$message = "$generalMessage L'indice est de " . 6 - $indice . "/6. $informationDescriptionMessage. $recommendationsMessage";
$city = $this->getInput('city');
$item['uri'] = $uri;
$today = date('d/m/Y');
$item['title'] = "Bulletin de l'air du $today pour la ville : $city.";
//$item['title'] .= ' Retrouvez plus d\'informations en allant sur atmo-occitanie.org #QualiteAir. ' . $message;
$item['title'] .= ' Retrouvez plus d\'informations en allant sur atmo-occitanie.org #QualiteAir. ' . $message;
$item['title'] .= ' #QualiteAir. ' . $message;
$item['author'] = 'floviolleau';
$item['content'] = $message;