1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-21 23:42:23 +00:00
23 Create a Folder for Each Movie
Kristian Matthews edited this page 2020-09-02 19:23:15 +01:00

Windows & Linux

Filebot

Filebot is a fantastic utility for getting your movies organized in a way that Radarr can successfully parse. Version 4.7.9's 64 bit and 32 bit can still be downloaded free from a SourceForge mirror, but there are also paid versions in the Windows and Apple stores. On Linux, your distribution of choice may have a package for it, like in Arch's AUR package or .deb files for Debian/Ubuntu from their download page. It has both a GUI and a CLI, so should satisfy almost everyone.

There is great help available, including their format expressions page. My personal suggestion is to use something like {ny}\{fn} if your files include useful details like quality, edition and/or group or {ny}/{ny} [{dim[0] >= 1280 ? 'Bluray' : 'DVD'}-{vf}] if they don't, which would yield Movie (Year)/Movie (Year) [Bluray-1080p] or Movie (Year)/Movie (Year) [DVD-480p] for example. Instead of Bluray, you could also use WEBDL if you'd rather your collection be considered that.

To keep this pattern for future movies, you should set:

Settings -> Media Management (Advanced Settings Shown) -> Movie Naming

  • File: {Movie CleanTitle} {(Release Year)} {Edition Tags} {[Quality Title]}
  • Folder: {Movie CleanTitle} {(Release Year)}

Note: You can replace the spaces above with . or _ if you prefer that naming format.

Windows

Files 2 Folder

I used a program called Files 2 Folder to make my movie library visible for import into Radarr, extract the zip to your computer and run the .exe as administrator, then click yes to add it to your right click menu.

  1. Browse to your movie folder

  2. Select all files and right click to bring up the menu

  3. Press the files 2 folder option in the menu

  4. Wait for the box to appear, ONLY CLICK THE SECOND OPTION

  5. Each movie will be in its' own folder.

Linux

cd /path/to/your/movies/files/
find . -maxdepth 1 -type f -iname "*.mkv" -exec sh -c 'mkdir "${1%.*}" ; mv "${1%}" "${1%.*}" ' _ {} \;

Windows & Linux

This script will place movies and TV episodes on folders
Files are not modifed or renamed only moved to folders.

Usage:: ./movie&TV2folder.py /path/movies/ (Movie 1 (year) , Movie)
Usage:: ./movie&TV2folder.py /path/tv/ ( tv folders: Tile 1, Title 2 )
Type of files:

Movies: (scans 1 folder deep - i.e. not recursive)
All files bellow would be moved to folder: ./Movie Title (2017)
Movie Title (2017) 1080p.mkv
Movie Title (2017) anything else.*
Movie Title (2017).*
Movie Title.mkv --> would not be moved, since missing (year)

Series: (scans 2 folders deep)
All files bellow would be moved to folder: ./Season 04/
Farscape - S04E01.mkv
Farscape - S04E01-E02.mkv
Farscape - S04E01
S04E01 - Farscape - group.mkv
Daily Show S2014E20 - would be moved to ./Season 2014/

Additional rules:
On OS error: retry operation 3 times with 1 second delay between attempts.
If move fails it continue with other files.

https://github.com/ajkis/scripts/blob/master/other/movie-tv2folder.py