From 0de2879d0baf876cf23c1ab8dbe586f856598e12 Mon Sep 17 00:00:00 2001 From: Ryan Christensen Date: Sun, 15 May 2016 16:45:10 -0500 Subject: [PATCH] Plex token changes Get rid of token expiration --- assets/php/functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/php/functions.php b/assets/php/functions.php index 60774ef..61af937 100644 --- a/assets/php/functions.php +++ b/assets/php/functions.php @@ -47,9 +47,8 @@ // Set the path for the Plex Token $plexTokenCache = ROOT_DIR . '/cache/plex_token.txt'; -// Check to see if the plex token exists and is younger than one week -// if not grab it and write it to the cache folder -if (file_exists($plexTokenCache) && (filemtime($plexTokenCache) > (time() - 60 * 60 * 24 * 7))) { +// Check to see if the plex token exists if not grab it and write it to the cache folder +if (file_exists($plexTokenCache) { $plexToken = file_get_contents(ROOT_DIR . '/cache/plex_token.txt'); file_put_contents($debug_file, date('Y-n-j G:i:s').' Using cached Plex token'."\r\n", FILE_APPEND); } else {