this post was submitted on 21 Nov 2023
25 points (96.3% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

52836 readers
344 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder


💰 Please help cover server costs.

Ko-FiLiberapay


founded 1 year ago
MODERATORS
 

An example is if I want to seed Harry Potter movies can I put the content in G:\Movies\Harry Potter\

But then be able to still seed the content outside the Harry Potter file structure. I.e still able to seed G:\Movies\

top 11 comments
sorted by: hot top controversial new old
[–] vettnerk@lemmy.ml 11 points 8 months ago

Depends on your OS, but symlinks can do that for you - file exists once, but multiple "files" link to it. The application (torrent client) doesn't care.

[–] ElderWendigo@sh.itjust.works 10 points 8 months ago

You're wording is a little weird, so hopefully we're understanding your situation and desire. Symlinks won't work, since they're basically just links to files or directories, i.e. they do not contain the actual data. Most the software you'd use to torrent or to play media is going to struggle with following a bunch of symlinks. Hardlinks are better suited to seeding a torrent from one directory, while maintaining a copy elsewhere to fit in with your media filename standards, without double the storage size.

If symlinking is like forwarding your mail to a new address, hardlinking is like having one house with two or more addresses. Each address brings you to the "real" house. Deleting one address (maybe because you're done seeding) does not remove the house or the other addresses. If you move or delete the target of a symlink, that link and any other symlink pointing to that location also breaks. The actual data of a file doesn't get deleted until ALL of the hardlinks have been deleted.

[–] themachine@lemmy.world 4 points 8 months ago (1 children)

Symlinks? Pretty sure that exists on windows.

[–] PM_Your_Nudes_Please@lemmy.world 0 points 8 months ago (1 children)

Symlinks likely wouldn’t work for a torrent, because that’s more like a shortcut; The symlink doesn’t actually point to the file, it just points to another filepath. Hardlinks would potentially work, but the hardlink must be on the same drive as the linked file; You can’t have a hardlink for your C: drive on your D: drive, for instance. Hardlinks basically tell the drive that there are two (or more) file paths that will reach the same file on the disc.

For a comparison, symlinks are like taking a trip to two different locations. You arrive at the first location, and they tell you “oh, actually what you need is over at location B.” So then you need to travel all the way over to location B to get what you need. But a hardlink is like having two potential routes to get to the same location. It doesn’t matter which road you take, because they both lead to the same place. But a torrent client likely won’t be able to handle the “oh actually you need to go visit location B” instructions, and will just crash/freeze/refuse to seed.

[–] themachine@lemmy.world 3 points 8 months ago

Symlinks likely wouldn’t work for a torrent, because that’s more like a shortcut; The symlink doesn’t actually point to the file, it just points to another filepath.

They are kinda like a shortcut but they are resolved directly by the filesystem and in the fast majority of cases should work perfectly fine if done correctly. In OPs case I'd probably leave the original file intact and create the link at the new desired destination.

You can’t have a hardlink for your C: drive on your D: drive

Thats why I didn't recommend hardlinks.

But a torrent client likely won’t be able to handle the “oh actually you need to go visit location B” instructions, and will just crash/freeze/refuse to seed.

You're just pulling that out of your ass.

*all of this is largely under the context of linux but should translate to windows

[–] rambos@lemm.ee 3 points 8 months ago

Sounds like you want *arr stack. Radarr will trigger torrent client to download files, then it will make a copy (hard link), rename files and put them in folder structure as you like. You will have 2 folders with same movie, but they take space only for one

[–] stifle867@programming.dev 3 points 8 months ago (2 children)

I second what another commenter said about hardlinks. I used to use a program (paid) called Filebot that makes this process pretty easy. You download all torrents to say G:/Downloads then drag the files into Filebot and it will search across internet media databases to match the metadata and automatically rename and hardlink the files to say G:/Movies using a format you specify.

For example: G:/Downloads/Movies/Oppenheimer.2023.BluRay.2160p.HDR.MULTi.5.1.AV1.Opus.DVD5-CAV1aR.mkv

to

G:/Movies/Oppenheimer (2023).mkv

Then you can still seed everything in G:/Downloads while having a nicely organised media library. The actual file on disk does not get deleted until all hardlinks have been deleted.

[–] PM_Your_Nudes_Please@lemmy.world 2 points 8 months ago (1 children)

Seconding hardlinks, but one (potentially important) note is that they won’t work on a NAS. A hardlink basically tells the drive there are two ways to navigate to the same file on the disc. But this doesn’t work over a networked drive, (at least, not in my experience) even if the two locations stay on the same drive.

[–] stifle867@programming.dev 2 points 8 months ago

You would probably have to run the hardlink command on the NAS through SSH or something to achieve the same effect but it should still be possible.

[–] kungen@feddit.nu 2 points 8 months ago (1 children)

Why would you ever want to rename the file though? The extra tags are useful, eg for when searching matching subtitles or remembering quality without needing to check ffprobe.

[–] stifle867@programming.dev 2 points 8 months ago

Filebot supports subtitle downloading and programs like Plex & Jellyfin work better when files are named organised according to convention.

The utility of having a well organised media library is more useful to me than the non-issues of downloading subtitles or figuring out quality.