From 6edd9875f2ed31756a51f12d324e642683db9f85 Mon Sep 17 00:00:00 2001 From: Maurice Renck Date: Sat, 4 May 2019 16:52:25 +0200 Subject: [PATCH 1/5] fixed: podlove player --- index.php | 2 ++ snippets/podlove-player.php | 4 ++-- utils/PodcasterStats.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 23c4232..f3d7dd4 100644 --- a/index.php +++ b/index.php @@ -61,6 +61,7 @@ 'pattern' => '(:all)/' . option('mauricerenck.podcaster.defaultFeed', 'feed'), 'action' => function ($slug) { $podcasterUtils = new PodcasterUtils(); + // !!! Von hier holen $page = $podcasterUtils->getPageFromSlug($slug. '/' . option('mauricerenck.podcaster.defaultFeed', 'feed')); if(option('mauricerenck.podcaster.statsInternal') === true) { @@ -102,6 +103,7 @@ $episode = $podcasterUtils->getPageFromSlug($slug); $podcasterUtils->setCurrentEpisode($episode); + // !!! FIXME $podcast = $episode->siblings()->find('feed'); if(option('mauricerenck.podcaster.statsInternal') === true) { diff --git a/snippets/podlove-player.php b/snippets/podlove-player.php index d750715..69f2dda 100644 --- a/snippets/podlove-player.php +++ b/snippets/podlove-player.php @@ -16,11 +16,11 @@ $audioFile = $podcasterUtils->getPodcastFile(); ?> -
+