feat: improving caching

This commit is contained in:
Chubby Granny Chaser
2025-10-15 13:58:40 +01:00
parent 136a44473f
commit 24106eaeab
35 changed files with 246 additions and 1061 deletions

View File

@@ -1,6 +1,5 @@
export enum Downloader {
RealDebrid,
AllDebrid,
Torrent,
Gofile,
PixelDrain,
@@ -56,7 +55,6 @@ export enum AuthPage {
export enum DownloadError {
NotCachedOnRealDebrid = "download_error_not_cached_on_real_debrid",
NotCachedInAllDebrid = "download_error_not_cached_in_alldebrid",
NotCachedOnTorBox = "download_error_not_cached_on_torbox",
GofileQuotaExceeded = "download_error_gofile_quota_exceeded",
RealDebridAccountNotAuthorized = "download_error_real_debrid_account_not_authorized",

View File

@@ -124,7 +124,6 @@ export const getDownloadersForUri = (uri: string) => {
Downloader.Hydra,
Downloader.TorBox,
Downloader.RealDebrid,
Downloader.AllDebrid,
];
}
@@ -142,19 +141,6 @@ export const getDownloadersForUris = (uris: string[]) => {
return Array.from(downloadersSet);
};
export const steamUrlBuilder = {
library: (objectId: string) =>
`https://steamcdn-a.akamaihd.net/steam/apps/${objectId}/header.jpg`,
libraryHero: (objectId: string) =>
`https://steamcdn-a.akamaihd.net/steam/apps/${objectId}/library_hero.jpg`,
logo: (objectId: string) =>
`https://cdn.cloudflare.steamstatic.com/steam/apps/${objectId}/logo.png`,
cover: (objectId: string) =>
`https://cdn.cloudflare.steamstatic.com/steam/apps/${objectId}/library_600x900.jpg`,
icon: (objectId: string, clientIcon: string) =>
`https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/${objectId}/${clientIcon}.ico`,
};
export const getDateLocale = (language: string) => {
if (language.startsWith("pt")) return ptBR;
if (language.startsWith("es")) return es;