Updated Create a Folder for Each Movie (markdown)

Ajki 2017-05-02 21:28:21 +02:00
parent 51b206c38c
commit eb03e7032e
1 changed files with 27 additions and 27 deletions

@ -37,30 +37,30 @@ 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
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