diff options
author | emkael <emkael@tlen.pl> | 2025-07-02 16:09:28 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2025-07-02 16:09:28 +0200 |
commit | 9fcd58aab29e53044fc786aed960ed93c7fde110 (patch) | |
tree | 9da421c5ecce943dad0be5a3e162d13d83bcb518 | |
parent | 1e2744b07eb05c26e6e92bd6e7b65938f978da5e (diff) |
-rw-r--r-- | providers/Youtube.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/providers/Youtube.php b/providers/Youtube.php index 9989bdd..b84ef77 100644 --- a/providers/Youtube.php +++ b/providers/Youtube.php @@ -31,7 +31,11 @@ class Youtube extends Rss { if (file_exists($cacheFile)) { $cacheData = unserialize(file_get_contents($cacheFile)); } - $oldIDs = array_keys($cacheData); + if ($cacheData) { + $oldIDs = array_keys($cacheData); + } else { + $oldIDs = []; + } $newIDs = array_diff($ids, $oldIDs); if ($newIDs) { $metadata = $this->_youtube->getVideosInfo($newIDs); |