this post was submitted on 19 Mar 2025
45 points (100.0% liked)
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
59194 readers
1240 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
📜 c/Piracy Wiki (Community Edition):
🏴☠️ Other communities
Torrenting/P2P:
Gaming:
💰 Please help cover server costs.
![]() |
![]() |
---|---|
Ko-fi | Liberapay |
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Edit: OP actually has a simple folder structure, and
transmission-create
works fine, so no need for anything more than just looping over 1st level folders and files with a simple shell script.Basically you'd want to map seasons to folders within the torrent files. I found the
torf
python library on github that looks good, but there are two questions:Not that I'm implicitly saying I'd write a program to do this (I'm very unreliable), but looks like you'd need to go the programming route (you or someone else). It's a matter of walking your folders, finding those XML files, parsing them with a library (python has a built in one), finding what to do with that info exactly, and passing it to torf. And preferably, saving the cryptographic sums, as well as the progress of the program. If you have the cryptographic sums in the XML files, it'd be worth it to make the program concurrent with threads, as it would be about reading and writing files as fast as possible, and this could be so fast saving progress would be pointless.