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:27:11 +02:00
parent e1e6575f64
commit 51b206c38c

@ -35,3 +35,32 @@ I used a program called [Files 2 Folder](http://skwire.dcmembers.com/fp/?page=fi
cd /path/to/your/movies/files/
find . -name "*.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