1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-19 17:32:38 +01:00

Updated Create a Folder for Each Movie (markdown)

Ajki 2017-05-02 21:28:21 +02:00
parent 51b206c38c
commit eb03e7032e

@ -37,30 +37,30 @@ find . -name "*.mkv" -exec sh -c 'mkdir "${1%.*}" ; mv "$1" "${1%.*}" ' _ {} \;
``` ```
# Windows & Linux # Windows & Linux
This script will place movies and TV episodes on folders This script will place movies and TV episodes on folders
Files are not modifed or renamed only moved to 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/movies/ (Movie 1 (year) , Movie)
Usage:: ./movie&TV2folder.py /path/tv/ ( tv folders: Tile 1, Title 2 ) Usage:: ./movie&TV2folder.py /path/tv/ ( tv folders: Tile 1, Title 2 )
Type of files: Type of files:
Movies: (scans 1 folder deep - i.e. not recursive) Movies: (scans 1 folder deep - i.e. not recursive)
All files bellow would be moved to folder: ./Movie Title (2017) All files bellow would be moved to folder: ./Movie Title (2017)
Movie Title (2017) 1080p.mkv Movie Title (2017) 1080p.mkv
Movie Title (2017) anything else.* Movie Title (2017) anything else.*
Movie Title (2017).* Movie Title (2017).*
Movie Title.mkv --> **would not be moved, since missing (year)** Movie Title.mkv --> **would not be moved, since missing (year)**
Series: (scans 2 folders deep) Series: (scans 2 folders deep)
All files bellow would be moved to folder: ./Season 04/ All files bellow would be moved to folder: ./Season 04/
Farscape - S04E01.mkv Farscape - S04E01.mkv
Farscape - S04E01-E02.mkv Farscape - S04E01-E02.mkv
Farscape - S04E01 Farscape - S04E01
S04E01 - Farscape - group.mkv S04E01 - Farscape - group.mkv
Daily Show S2014E20 - would be moved to ./Season 2014/ Daily Show S2014E20 - would be moved to ./Season 2014/
Additional rules: Additional rules:
On OS error: retry operation 3 times with 1 second delay between attempts. On OS error: retry operation 3 times with 1 second delay between attempts.
If move fails it continue with other files. If move fails it continue with other files.
https://github.com/ajkis/scripts/blob/master/other/movie-tv2folder.py https://github.com/ajkis/scripts/blob/master/other/movie-tv2folder.py