From 1cb09450223d71dd6ef269aa72a58abd65011336 Mon Sep 17 00:00:00 2001 From: Fornax Date: Mon, 5 Feb 2024 15:07:25 +0100 Subject: [PATCH] Add instructions for downloading torrent files --- svelte/src/file_viewer/viewers/Torrent.svelte | 70 ++++++++++++++++++- svelte/src/icons/Magnet.svelte | 2 +- webcontroller/style.go | 2 +- 3 files changed, 70 insertions(+), 4 deletions(-) diff --git a/svelte/src/file_viewer/viewers/Torrent.svelte b/svelte/src/file_viewer/viewers/Torrent.svelte index 543e167..37d93a2 100644 --- a/svelte/src/file_viewer/viewers/Torrent.svelte +++ b/svelte/src/file_viewer/viewers/Torrent.svelte @@ -89,7 +89,7 @@ const copy_magnet = () => { Created at: {formatDate(new Date(torrent.created_at), true, true, true)}
Info hash: {torrent.info_hash}
- + Open magnet link + +
+ How do I download this? (expand for more information) +

+ This is a torrent file, which means you will need a torrent client to + download it. Here are some good torrent clients for various platforms: +

+ +

+ After installing your torrent client you will be able to use the + Open magnet link + button to download the files in your torrent client. +

+

What is a torrent?

+

+ BitTorrent is a + peer-to-peer network for sharing files. This torrent file does not + actually contain the files listed below, instead it contains + instructions for your torrent client to download the files from + other people who happen to be downloading the same files currently. + This means that instead of connecting to a single server (like + pixeldrain), you will be connecting to other people on the internet + to download these files. +

+

+ Torrents are a highly efficient and free method of transferring + files over the internet. Since the bandwidth is shared directly + between users there is no need for expensive servers to host the + files for you. +

+

Is this safe?

+

+ Your torrent client will make sure that the files you receive from + your peers are actually what they say it is. This makes it just as + safe as any other form of downloading. Like any other form of + downloading files you still need to be aware of what you are + downloading. Don't just blindly trust any file anyone sends you. +

+

+ When downloading a torrent file you will be part of the so-called + 'torrent swarm'. Anyone in the swarm can see each other's IP + addresses. This is not a bad thing on its own, but there a few cases + in which this can be abused. If you are downloading copyrighted + material (which I do not condone) then rightsholders will be able to + see your IP address. In most cases this is not a problem because + your ISP will still protect your identity. But there are some + countries (notably the USA) where your ISP will not respect your + right to privacy and the rightsholder will be able to contact you. + If this worries you then you should look into VPN services to + protect your privacy, like Mullvad. +

+
+
+ {#if status === "finished"}

Files in this torrent

{/if} + + diff --git a/svelte/src/icons/Magnet.svelte b/svelte/src/icons/Magnet.svelte index 0989d3f..60b7563 100644 --- a/svelte/src/icons/Magnet.svelte +++ b/svelte/src/icons/Magnet.svelte @@ -1,4 +1,4 @@ - +