diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index 63cad17..29cb9bf 100644 --- a/get_youtube_videos/get_youtube_videos.py +++ b/get_youtube_videos/get_youtube_videos.py @@ -121,7 +121,7 @@ class GetYoutubeVideos: if ( 'last_update' in cached_data and cached_data['last_update'] + self.config['max_cache_age'] > time.time() - ): + ) or self.config['max_cache_age'] == -1: cached_data = self._default_data except json.decoder.JSONDecodeError: cached_data = self._default_data