diff --git a/lib/Core/EpisodeAction/EpisodeActionExtraData.php b/lib/Core/EpisodeAction/EpisodeActionExtraData.php
index 431c344..5c840d9 100644
--- a/lib/Core/EpisodeAction/EpisodeActionExtraData.php
+++ b/lib/Core/EpisodeAction/EpisodeActionExtraData.php
@@ -13,6 +13,7 @@ use OCA\GPodderSync\Core\EpisodeAction\EpisodeAction;
* @psalm-import-type EpisodeActionType from EpisodeAction
*
* @psalm-type EpisodeActionExtraDataType = array{
+ * title: string,
* url: ?string,
* name: string,
* link: ?string,
@@ -30,6 +31,7 @@ use OCA\GPodderSync\Core\EpisodeAction\EpisodeAction;
class EpisodeActionExtraData implements \JsonSerializable
{
public function __construct(
+ private string $title,
private ?string $url,
private string $name,
private ?string $link,
@@ -102,6 +104,7 @@ class EpisodeActionExtraData implements \JsonSerializable
public function toArray(): array {
return
[
+ 'title' => $this->title,
'url' => $this->url,
'name' => $this->name,
'link' => $this->link,
diff --git a/lib/Core/EpisodeAction/EpisodeActionReader.php b/lib/Core/EpisodeAction/EpisodeActionReader.php
index e6d7519..ca1f14d 100644
--- a/lib/Core/EpisodeAction/EpisodeActionReader.php
+++ b/lib/Core/EpisodeAction/EpisodeActionReader.php
@@ -27,6 +27,7 @@ class EpisodeActionReader extends CoreEpisodeActionReader
$episodes = [];
$xml = new \SimpleXMLElement($xmlString);
$channel = $xml->channel;
+ $title = (string) $channel->title;
// Find episode by url and add data for it
/** @var \SimpleXMLElement $item */
@@ -108,6 +109,7 @@ class EpisodeActionReader extends CoreEpisodeActionReader
$pubDate = $rawPubDate ? new \DateTime($rawPubDate) : null;
$episodes[] = new EpisodeActionExtraData(
+ $title,
$url,
$name,
$link,
diff --git a/src/components/Feed/Episodes.vue b/src/components/Feed/Episodes.vue
index 9d8ecb8..78ee639 100644
--- a/src/components/Feed/Episodes.vue
+++ b/src/components/Feed/Episodes.vue
@@ -41,7 +41,7 @@
:link="modalEpisode.link"
:name="modalEpisode.name"
:size="modalEpisode.size"
- :title="title"
+ :title="modalEpisode.title"
:url="modalEpisode.url" />
@@ -74,12 +74,6 @@ export default {
PlayButton,
StopButton,
},
- props: {
- title: {
- type: String,
- required: true,
- },
- },
data() {
return {
episodes: [],
diff --git a/src/components/Player/Infos.vue b/src/components/Player/Infos.vue
index a955473..0ae2b89 100644
--- a/src/components/Player/Infos.vue
+++ b/src/components/Player/Infos.vue
@@ -4,7 +4,7 @@
{{ player.episode.name }}
- {{ player.episode.podcast }}
+ {{ player.episode.title }}
diff --git a/src/views/Feed.vue b/src/views/Feed.vue
index 9ea7ed1..0074554 100644
--- a/src/views/Feed.vue
+++ b/src/views/Feed.vue
@@ -14,7 +14,7 @@
:image-url="feed.imageUrl"
:link="feed.link"
:title="feed.title" />
-
+