From 3799d33c625fe28eab4b46917ff32b1266cda1e3 Mon Sep 17 00:00:00 2001 From: MasutaYunikon Date: Fri, 26 Jun 2026 14:49:53 +0200 Subject: [PATCH] fix(scraper): fallback on empty env for GITHUB_BASE fix(client): add placeholder from config fix(client): remove alldebrid --- server/lib/github-cache.ts | 5 +++-- src/views/settings/DownloadClientView.vue | 8 ++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/server/lib/github-cache.ts b/server/lib/github-cache.ts index 8082da7..36c3f1f 100644 --- a/server/lib/github-cache.ts +++ b/server/lib/github-cache.ts @@ -2,8 +2,9 @@ import { DATA_DIR } from '../config.js' import path from 'path' import fs from 'fs' -const GITHUB_BASE = process.env.GITHUB_BASE - ?? 'https://raw.githubusercontent.com/masutayunikon/fankarr-scraper/main' +const GITHUB_BASE = + process.env.GITHUB_BASE?.trim() || + 'https://raw.githubusercontent.com/masutayunikon/fankarr-scraper/main' const CACHE_TTL_MS = 1 * 60 * 60 * 1000 diff --git a/src/views/settings/DownloadClientView.vue b/src/views/settings/DownloadClientView.vue index 596ec2b..cc71ad7 100644 --- a/src/views/settings/DownloadClientView.vue +++ b/src/views/settings/DownloadClientView.vue @@ -182,7 +182,7 @@ @@ -254,11 +254,7 @@ const clientMatrix = [ { id: 'real-debrid', label: 'Real-Debrid', version: 'API v1', auth: 'Clé API', fileSelect: true, fileProgress: true, torrentUpload: 'proxy', categories: false, deleteFiles: true, - }, - { - id: 'alldebrid', label: 'AllDebrid', version: 'API v4', - auth: 'Clé API', fileSelect: false, fileProgress: true, torrentUpload: 'proxy', categories: false, deleteFiles: true, - }, + } ] const modal = ref({