#63 open

Use hardlinks or symbolic links in stead of move

Reported by beetlezap | October 8th, 2010 @ 03:59 AM | in v2.4

Hi !

I've just downloaded the scripts and they seem to do almost exactly what i want. Thanks a million, i am even more happy since they are in python so i can run it without problems on my headless Ubuntu-server.

My question/suggestion is as follows. Do you think it would be a good idea to create target-files as links (symbolic or hardlinks) instead of moving ? Would it be possible and if yes would it be a good idea?

My thinking here is to keep all tvshows in the directory I've downloaded them into (mainly for seeding purposes). Then create a target directory structure with hard links in the format /Show Name/Season/Episode-Name. If it is hardlinks it would be possible to run cleanup and other maintenance on the target dir and the "correct" names (like deleting a complete season). If i were to move the shows periodically (with cron) or by a trigger (download complete) it would probably mess up my seeding of the torrent.

Any way to get this configurable in the script (mv or ln command to be run) ?

Comments and changes to this ticket

  • dbr/Ben

    dbr/Ben October 9th, 2010 @ 04:54 PM

    • State changed from “new” to “open”

    Sounds like a good idea. I'll try to implement this soon, not sure when however.

    In the meantime, you could always copy or hardlink the file before running tvnamer, something like:

    ln myfile.s01e01.avi myfile.s01e01_torename.avi
    tvnamer myfile.s01e01_torename.avi

    (which could be done as a simple shell script)

  • beetlezap

    beetlezap October 9th, 2010 @ 06:21 PM

    Hi !
    Thanks for the quick and positive response. I will make a small shell script to do the linking before. Good idea.

  • dbr/Ben

    dbr/Ben January 4th, 2011 @ 11:00 AM

    • Milestone set to v2.4
    • Milestone order changed from “186716” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket