From ca8b42caaf49e183ef8270c425894eafa08153f7 Mon Sep 17 00:00:00 2001 From: Taiizor <41683699+Taiizor@users.noreply.github.com> Date: Tue, 26 Sep 2023 16:32:07 +0300 Subject: [PATCH] Store Improvement --- src/Shared/Sucrose.Shared.Store/Helper/Download.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Shared/Sucrose.Shared.Store/Helper/Download.cs b/src/Shared/Sucrose.Shared.Store/Helper/Download.cs index dff41002d..61a59d759 100644 --- a/src/Shared/Sucrose.Shared.Store/Helper/Download.cs +++ b/src/Shared/Sucrose.Shared.Store/Helper/Download.cs @@ -132,11 +132,7 @@ public static bool Cache(KeyValuePair Wallpaper, string Theme, st InitializeClient(Agent, Key); - bool ResponseOne = Response($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{SMR.SucroseInfo}", $"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{Wallpaper.Value.Cover}", Theme, Cover, Info); - bool ResponseTwo = Response(EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{SMR.SucroseInfo}"), EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{Wallpaper.Value.Cover}"), Theme, Cover, Info); - bool ResponseThree = Response(EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{SMR.SucroseInfo}?v={DateTimeOffset.Now.ToUnixTimeSeconds()}"), EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{Wallpaper.Value.Cover}?v={DateTimeOffset.Now.ToUnixTimeSeconds()}"), Theme, Cover, Info); - - return ResponseOne || ResponseTwo || ResponseThree; + return Response($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{SMR.SucroseInfo}", $"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{Wallpaper.Value.Cover}", Theme, Cover, Info) || Response(EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{SMR.SucroseInfo}"), EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{Wallpaper.Value.Cover}"), Theme, Cover, Info) || Response(EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{SMR.SucroseInfo}?v={DateTimeOffset.Now.ToUnixTimeSeconds()}"), EncodeSpacesOnly($"{SMR.RawWebsite}/{Wallpaper.Value.Source}/{Wallpaper.Key}/{Wallpaper.Value.Cover}?v={DateTimeOffset.Now.ToUnixTimeSeconds()}"), Theme, Cover, Info); } }