lardbit / nefarious

Web application for automatically downloading TV & Movies (w/ VPN)
https://lardbit.github.io/nefarious/
GNU General Public License v3.0
1.01k stars 77 forks source link

[Feature] Before auto-name, hardlink, softlink or copy #135

Open mozartcorleone opened 3 years ago

mozartcorleone commented 3 years ago

It would be a great feature to be able to hard link the content to another folder where it is renamed to the right convention. Many private trackers require the files to be named exactly the same for seeding.

I tried to do this myself but I could not figure out where the renaming process is happening. Would love to know!

lardbit commented 3 years ago

I see your point about seeding. It's beyond the scope of overall simplicity of nefarious, but I'm always open to contributions if someone wants to invest the time. I'm definitely not opposed to the feature, but I try and focus on the general-use stuff.

Here's some of the relevant logic:

Function that returns the new names: https://github.com/lardbit/nefarious/blob/5e1c893e88cc38d051b90d22cdd403830c910d3b/src/nefarious/utils.py#L141

Get the new name: https://github.com/lardbit/nefarious/blob/master/src/nefarious/tasks.py#L178

Do the rename within transmission: https://github.com/lardbit/nefarious/blob/master/src/nefarious/tasks.py#L193