chore: bump version to 3.8.0 and update translations for downloader status and notifications

This commit is contained in:
Chubby Granny Chaser
2026-01-03 21:07:09 +00:00
parent 345696ad06
commit 87fcbaa56e
12 changed files with 594 additions and 125 deletions

View File

@@ -21,7 +21,6 @@ export class Aria2 {
"--rpc-listen-all",
"--file-allocation=none",
"--allow-overwrite=true",
"--disable-ipv6",
],
{ stdio: "inherit", windowsHide: true }
);

View File

@@ -8,13 +8,6 @@ interface UnlockResponse {
}
export class VikingFileApi {
private static readonly browserHeaders = {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
Referer: "https://vikingfile.com/",
};
public static async getDownloadUrl(uri: string): Promise<string> {
const unlockResponse = await axios.post<UnlockResponse>(
`${import.meta.env.MAIN_VITE_NIMBUS_API_URL}/hosters/unlock`,
@@ -27,16 +20,11 @@ export class VikingFileApi {
const redirectUrl = unlockResponse.data.link;
// Follow the redirect to get the final Cloudflare storage URL
try {
const redirectResponse = await axios.head(redirectUrl, {
headers: this.browserHeaders,
maxRedirects: 0,
validateStatus: (status) =>
status === 301 || status === 302 || status === 200,
httpsAgent: new https.Agent({
family: 4, // Force IPv4
}),
});
if (