Skip to content

Commit 715fd8c

Browse files
committed
fix: Add missing has_archive from XAPI EPG endpoints
Resolves #642
1 parent c490aed commit 715fd8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/XtreamApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ public function handle(Request $request)
15001500
'start_timestamp' => (string) $startTime->timestamp,
15011501
'stop_timestamp' => (string) $endTime->timestamp,
15021502
'now_playing' => ($isCurrentProgramme && $isNowPlaying) ? 1 : 0,
1503-
'has_archive' => 0,
1503+
'has_archive' => $channel->catchup ? 1 : 0,
15041504
];
15051505
$count++;
15061506
}
@@ -1565,7 +1565,7 @@ public function handle(Request $request)
15651565
'start_timestamp' => (string) $startTime->timestamp,
15661566
'stop_timestamp' => (string) $endTime->timestamp,
15671567
'now_playing' => ($isCurrentProgramme && $isNowPlaying) ? 1 : 0,
1568-
'has_archive' => 0,
1568+
'has_archive' => $channel->catchup ? 1 : 0,
15691569
];
15701570
}
15711571
}

0 commit comments

Comments
 (0)