File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ' => $ channel ->catchup ? 1 : 0 ,
1503+ 'has_archive ' => ( $ channel ->catchup && $ endTime -> lt ( $ now )) ? 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 ' => $ channel ->catchup ? 1 : 0 ,
1568+ 'has_archive ' => ( $ channel ->catchup && $ endTime -> lt ( $ now )) ? 1 : 0 ,
15691569 ];
15701570 }
15711571 }
You can’t perform that action at this time.
0 commit comments