feat(torrents): support remote torrent metadata

This commit is contained in:
NimBold
2026-08-02 00:29:49 +03:30
parent 0f1f4e8003
commit d0541308c7
6 changed files with 281 additions and 4 deletions
+1 -3
View File
@@ -574,9 +574,7 @@ export const AddDownloadsModal = () => {
const requestContext = requestContextForUrl(contextUrl);
if (row.isTorrent) {
const torrentCacheId = row.torrentCacheId || `${row.id}-${row.generation}`;
const proxy = row.sourceUrl.trim().toLowerCase().startsWith('magnet:')
? await getProxyArgs(settingsStore)
: undefined;
const proxy = await getProxyArgs(settingsStore);
const torrentData = await invoke('inspect_torrent', {
source: row.sourceUrl,
id: torrentCacheId,