Skip to content

Commit 6aba7cf

Browse files
committed
Fixes #8363, this fixes the case where a recording starts early for playback on frontend
1 parent c1ef027 commit 6aba7cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/tv/tmpl/default/detail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function watchShow(host, chanid, starttime) {
452452
if ($program && $schedule) {
453453
echo '(<a href="'.root_url.'tv/';
454454
// Link to different places for different kinds of schedules
455-
if ($schedule->search) {
455+
if ($schedule->search) {
456456
echo 'schedules/',
457457
($schedule->search == searchtype_manual) ? 'manual'
458458
: 'custom',
@@ -768,7 +768,7 @@ function watchShow(host, chanid, starttime) {
768768
if (is_array($frontends)) {
769769
echo '<div class="x-frontends">'.t('Play Recording on Frontend').':<ul>';
770770
foreach ($frontends as $frontend)
771-
echo '<li><a onclick="watchShow(\''.urlencode($frontend->getHost()).'\', \''.urlencode($program->chanid).'\', \''.urlencode($program->starttime).'\');">'.$frontend->getHost().'</a><br>';
771+
echo '<li><a onclick="watchShow(\''.urlencode($frontend->getHost()).'\', \''.urlencode($program->chanid).'\', \''.urlencode($program->recstartts).'\');">'.$frontend->getHost().'</a><br>';
772772
echo '</ul></div>';
773773
}
774774
?>

0 commit comments

Comments
 (0)