mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-01 16:03:41 +03:00
tweaks (#3686)
This commit is contained in:
parent
39d6710798
commit
a6a1d553d9
3 changed files with 12 additions and 4 deletions
|
@ -71,7 +71,9 @@ class BundesbankBridge extends BridgeAbstract
|
|||
$item['content'] .= '<strong>' . $study->find('.teasable__subtitle', 0)->plaintext . '</strong>';
|
||||
}
|
||||
|
||||
$item['content'] .= '<p>' . $study->find('.teasable__text', 0)->plaintext . '</p>';
|
||||
$teasable = $study->find('.teasable__text', 0);
|
||||
$teasableText = $teasable->plaintext ?? '';
|
||||
$item['content'] .= '<p>' . $teasableText . '</p>';
|
||||
|
||||
$item['timestamp'] = strtotime($study->find('.teasable__date', 0)->plaintext);
|
||||
|
||||
|
|
|
@ -466,6 +466,10 @@ EOD;
|
|||
}
|
||||
$rows = $content['rows'];
|
||||
foreach ($rows as $row) {
|
||||
if (!is_array($row)) {
|
||||
// some rows are null
|
||||
continue;
|
||||
}
|
||||
$tr = '<tr>';
|
||||
foreach ($row as $data) {
|
||||
$tr .= '<td>' . $data . '</td>';
|
||||
|
|
|
@ -157,9 +157,11 @@ EOD;
|
|||
|
||||
// Add played games list to content
|
||||
$item['content'] .= '<p><b>Played games:</b><ul>';
|
||||
if (count($video->moments->edges) > 0) {
|
||||
foreach ($video->moments->edges as $edge) {
|
||||
$moment = $edge->node;
|
||||
|
||||
$momentEdges = $video->moments->edges ?? [];
|
||||
if (count($momentEdges) > 0) {
|
||||
foreach ($momentEdges as $momentEdge) {
|
||||
$moment = $momentEdge->node;
|
||||
|
||||
$item['categories'][] = $moment->description;
|
||||
$item['content'] .= '<li><a href="'
|
||||
|
|
Loading…
Add table
Reference in a new issue