[REQ] Save subtitles next to symlinks

All your suggestions, requests and ideas for future development
Post Reply
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

[REQ] Save subtitles next to symlinks

Post by verysofttoiletpaper »

When using the symlink option, the subtitles are saved next to the original files, instead of next to the symlinks. (Not sure what the behaviour is with copy and move options)

This is an issue because when using a bittorrent client to delete torrents and downloaded files, it will not delete the subtitles, neither the folder containing them, leaving behing an unnecessary trail of empty folders with subs. This could be worked around using the cleaner script , however it needs to run on the main torrent directory with thousands of folders and subfolders something which takes an eternity to complete (I gave up after 15min). Perhaps the worst situation with no work around is when the videos are not contained in their own folder and the subtitles get downloaded to the root of the downloads folder, where other videos also exist.

So, if the subtitles were saved on the new location, leaving the original folders intact, this problem would go away.

Is this possible?
Thanks a lot! :P
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [REQ] Save subtitles next to symlinks

Post by rednoah »

Sure, just keep track of the destination files and run the getSubtitles calls after the rename calls. Lookup will work less well because you lose the original name though. You'll need to modify the script anyway.

EDIT:
Noticed that with clean=y already takes care of this issue in COPY and HARDLINK modes. In SYMLINK mode is complicated though since we wanna keep the symlink location but move the data file there instead.
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: [REQ] Save subtitles next to symlinks

Post by verysofttoiletpaper »

What about just moving the subtitles instead of symlinking them?
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [REQ] Save subtitles next to symlinks

Post by rednoah »

It's all in the rename(...) call. Can't symlink for videos but move for subtitles. Of course it's possible (i can pass in a smart rename function) but that'll make the code even more complex. You can have your own mod if you really need to.
:idea: Please read the FAQ and How to Request Help.
Post Reply