From d8b245d3c74080c4bb51f6c4e1aab1f9732e32c5 Mon Sep 17 00:00:00 2001 From: wutschel Date: Mon, 30 Sep 2024 15:21:58 +0200 Subject: [PATCH] Each user profiles need a dedicated cacheKey This ensures the App's cached library content matches the content reachable for the active user profile. --- XBMC Remote/DetailViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/XBMC Remote/DetailViewController.m b/XBMC Remote/DetailViewController.m index 769fe56f1..0dc74b772 100644 --- a/XBMC Remote/DetailViewController.m +++ b/XBMC Remote/DetailViewController.m @@ -354,6 +354,9 @@ - (NSString*)getCacheKey:(NSString*)fieldA parameters:(NSMutableDictionary*)fiel // Which version does the serer have? NSString *serverVersion = [NSString stringWithFormat:@"%d.%d", serverMajorVersion, serverMinorVersion]; + // Which user profile is active? + NSString *currentProfile = [NSString stringWithFormat:@"%@", AppDelegate.instance.currentProfile]; + // Which App version are we running? NSString *appVersion = [Utilities getAppVersionString]; @@ -361,7 +364,7 @@ - (NSString*)getCacheKey:(NSString*)fieldA parameters:(NSMutableDictionary*)fiel NSString *jsonRequest = [NSString stringWithFormat:@"%@ %@", fieldA, fieldB]; // Get SHA256 hash for the combination given above - NSString *text = [NSString stringWithFormat:@"%@%@%@%@", serverInfo, serverVersion, appVersion, jsonRequest]; + NSString *text = [NSString stringWithFormat:@"%@%@%@%@%@", serverInfo, serverVersion, currentProfile, appVersion, jsonRequest]; return [text SHA256String]; }