1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-29 11:00:10 +02:00
This commit is contained in:
Dag
2023-10-16 03:43:18 +02:00
committed by GitHub
parent ef5bd83bd0
commit 563c2a345b
2 changed files with 17 additions and 23 deletions

View File

@@ -113,7 +113,12 @@ class ARDAudiothekBridge extends BridgeAbstract
$item['timestamp'] = $audio->publicationStartDateAndTime;
$item['uid'] = $audio->id;
$item['author'] = $audio->programSet->publicationService->title;
$item['categories'] = [ $audio->programSet->editorialCategories->title ];
$category = $audio->programSet->editorialCategories->title ?? null;
if ($category) {
$item['categories'] = [$category];
}
$this->items[] = $item;
}
}