small fix
This commit is contained in:
@@ -1,12 +1,6 @@
|
|||||||
<?php
|
<?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
|
// Example call: samsung.api.clinic/bww/tvguide/fetch.php?key=094KS932&limitchannels=10
|
||||||
if($_GET['key'] == '094KS932') {
|
if($_GET['key'] == '094KS932') {
|
||||||
|
|
||||||
@@ -61,7 +55,6 @@ function executeAPIFetch($apiKey) {
|
|||||||
|
|
||||||
|
|
||||||
// $finalURL = $url . '?start=' . $start . '&end=' . $end . $append . '&detail=brief&api_key=' . $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/' . $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;
|
//$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);
|
$response = file_get_contents($url);
|
||||||
@@ -80,7 +73,6 @@ function executeAPIFetch($apiKey) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function archiveCurrent() {
|
function archiveCurrent() {
|
||||||
|
|
||||||
$date = date('d-m-y h:i:s');
|
$date = date('d-m-y h:i:s');
|
||||||
$dest = 'archive/' . $date . '.json';
|
$dest = 'archive/' . $date . '.json';
|
||||||
copy('guide.json', $dest);
|
copy('guide.json', $dest);
|
||||||
|
|||||||
Reference in New Issue
Block a user