mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 01:03:57 +00:00
feat: improving caching
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user