I wrote a script to run with Node JS that near perfectly organises (renames and moves) torrented movies. It is designed to work in Linux, to transfer to Emby folder convention. I was working on making a TV show version, maybe merging the two, and porting it back to Windows where I first built the script, but I recently discovered the *arrs do it all. Still, if anyone wants a script that does its best (with guidance and thorough logging), I’ve stored it here.

Edit: For other reasons I built another script that can clean up an existing media directory, deleting files with any extension the user chooses (subs, images, thumbs and movies with multiple qualities leaving the best one). I’ve added it to the same repo. This script was more of a WIP, but it gets the job done and includes a help argument.

  • harsh3466@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 days ago

    Nice! I wrote one in bash to do the same. I knew of the *arrs but did it myself for the learning process

    • Lyra_Lycan@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      2 days ago

      Awesome - I tried to convert to bash but took the easy way out once I learned I could install node aha.

      I learned Java and a bit of py just to make my renaming easier lol - took the task down from weeks to seconds!

      • harsh3466@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        I don’t have it in github or anything but if you want to see it I can share it here.