Skip to content

Commit

Permalink
Prevent caching in incognito mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Dec 13, 2024
1 parent a09f2d3 commit 33be7e2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(self, provider, context, progress_dialog=None):
self.new_data = {}

params = context.get_params()
self._incognito = params.get('incognito')

fanart_type = params.get('fanart_type')
settings = context.get_settings()
Expand Down Expand Up @@ -501,6 +502,9 @@ def get_videos(self,
return result

def cache_data(self, data=None, defer=False):
if self._incognito:
return

if defer:
if data:
self.new_data.update(data)
Expand Down

0 comments on commit 33be7e2

Please sign in to comment.