• weilii@lemmy.lacasabien.space
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 hours ago

    Have you heard of our load and savior “Automatically renaming and organizing with sonarr and using symlinks to preserve the naming of the torrent downloads so you can seed without using twice as much storage”?

    Sonarr makes a symlink from the torrent download folder to a new folder where it renames and reorganizes the file, but the pointer for that file and the file in the downloads folder point to the same file on your hdd so.you have two copies with different names but only one “file”. Now you have a perfectly organized media folder to feed into Plex while all of those files also live in your completed downloads folder with the original naming conventions. And it’s all automagic.

    • lyralycan@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      6 hours ago

      Yes. Just to add, not everything hard links for me due to files being seeded (and locked) straight after it’s done downloading, so later I go back and fix the bulk by entering the download folder and typing:

      • To list files that weren’t hard linked:
      cd /path/to/downloads/
      find . -links 1 -type f | grep ".mp4$\|.mkv$" | sort > ../fixthese.txt
      

      And going through the list and either reimporting manually via *arr>Wanted>Import manually, or

      • omitting certain shows from the command once you’re certain all the unlinked are unwanted extras with:
      find . -links 1 -type f | grep ".mp4$\|.mkv$" | grep -vE "./(Band.Of.Brothers|The Boys|Westworld|.*\] (Attack On Titan|JoJo)|.*ample.mkv$)" | sort > ../fixthese.txt
      

      ( “./(|…” covers most shows, “*] (|…” covers files starting with e.g. [Anime Time], and “.*ample.mkv$” covered my ‘sample’ and “Sample” videos)

    • SqueakySpider@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 hours ago

      Thank you for this comment - I have been content with just a torrent client and jellyfin for ages. All files are tossed into a television or movies folder across multiple drives, like MoviesDriveA and MoviesDriveB. It works but it’s a real pain sometimes and having everything just go to a simpler torrent downloads would be a great time saver.

      • weilii@lemmy.lacasabien.space
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 hours ago

        I was amazed when I found it this was how you were supposed to do it, and also kinda mad about there being no way for me to go back and seed the thousands of torrents I had renamed to get them to play right with Plex imports. Oh well, you live and you learn. If you have any issues the sonarr subreddit has some great guides in the sticky section and fairly helpful users that should be able to get the symlink think sorted out. Noone tells you that’s how it’s supposed to be when you start, you kinda have to bump into the information when you get mad about this very problem.

        Good luck! I bet you’ll be pretty happy with the drastic reduction in labor once you set it up

        • SqueakySpider@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 hours ago

          There’s a silver lining because for some reason qBit updated and I lost hundreds of torrents including for private trackers. So my old workflow of managing via moving torrent locations is broken anyhow. Time to just restart, get new torrents, manage them better, and try to manually reorganize files that don’t have a torrent file anymore. Thank you!!

          • weilii@lemmy.lacasabien.space
            link
            fedilink
            English
            arrow-up
            0
            ·
            8 hours ago

            Sonarr/radar will organize and rename the ones without torrents for you… Don’t do it manually. Just point them (sonarr/radarr) at the downloads folder as an import folder. Sonarr is for TV and radarr is for movies, if you didn’t know.