Skip to content

Commit

Permalink
Store Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Sep 26, 2023
1 parent 4cc16ea commit ca8b42c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Shared/Sucrose.Shared.Store/Helper/Download.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ public static bool Cache(KeyValuePair<string, SSSIW> 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);
}
}

Expand Down

0 comments on commit ca8b42c

Please sign in to comment.