diff --git a/Create-a-Folder-for-Each-Movie.md b/Create-a-Folder-for-Each-Movie.md index 5edced8..74bda0a 100644 --- a/Create-a-Folder-for-Each-Movie.md +++ b/Create-a-Folder-for-Each-Movie.md @@ -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 \ No newline at end of file +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 \ No newline at end of file