small fix
This commit is contained in:
10
fetch.php
10
fetch.php
@@ -1,12 +1,6 @@
|
||||
<?php
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
//$url = 'https://api.tvmedia.ca/tv/v4/lineups/' . $lineupID . '/listings/grid'; 2022-07-26T08:47:39.000Z
|
||||
|
||||
|
||||
|
||||
//$url = 'https://api.tvmedia.ca/tv/v4/lineups/' . $lineupID . '/listings/grid'; 2022-07-26T08:47:39.000Z
|
||||
// Example call: samsung.api.clinic/bww/tvguide/fetch.php?key=094KS932&limitchannels=10
|
||||
if($_GET['key'] == '094KS932') {
|
||||
|
||||
@@ -61,7 +55,6 @@ function executeAPIFetch($apiKey) {
|
||||
|
||||
|
||||
// $finalURL = $url . '?start=' . $start . '&end=' . $end . $append . '&detail=brief&api_key=' . $apiKey;
|
||||
|
||||
$url = 'https://api.tvmedia.ca/tv/v4/lineups/' . $lineupID . '/listings/grid?start=' . $start .'&end=' . $end . '&timezone=-05:00' . '&detail=brief&api_key=' . $apiKey;
|
||||
//$url = 'https://api.tvmedia.ca/tv/v4/lineups/browse' . $lineupID . '/listings/grid?start=' . $start .'&end=' . $end . '&timezone=-05:00' . '&detail=brief&api_key=' . $apiKey;
|
||||
$response = file_get_contents($url);
|
||||
@@ -80,7 +73,6 @@ function executeAPIFetch($apiKey) {
|
||||
}
|
||||
|
||||
function archiveCurrent() {
|
||||
|
||||
$date = date('d-m-y h:i:s');
|
||||
$dest = 'archive/' . $date . '.json';
|
||||
copy('guide.json', $dest);
|
||||
|
||||
Reference in New Issue
Block a user