Command Line script help
Posted: 21 Mar 2014, 20:35
I would like to create a command line script to use in windows.
I run a raspberry pi, which torrents to the server. This uses to automatically grab desired content, and stores the tv shows and anime into folders based on series.
I would like to create a script that i could run which would look at both the anime and tv shows folders, and rename/move the shows to the corresponding anime/tv show folders on my local computer, as the server is not meant for storage. The biggest part of my issue is that I need it to NOT grab anything from folders that contain a file with .part in it, as it will make transmission have issues with the torrent file if one of the files disappears. It would obviously be desirable if folders that were made empty/only left containing small text/image files would be deleted automatically.
So the components I'm looking for:
Checks 2 directories.
Depending on the directory a file is in, Anime/TV shows, renames to new directory Anime/TV shows
Checks with theTVDB for parts of the rename - the current format string I use is:
E:/TV Shows/{n}/{"Season ${s}"}/{n}.{s00e00}.{t}
Will NOT attempt to move/rename files in a folder that contains a file with .part
Cleans up junk folders created.
An additional goal would be for any files in those folders that are not DEFINITELY identified to be moved to a specific folder, as they must be manually dealt with.
I obviously don't intend anyone to write the script for me, I'm more concerned with, are these possible with filebot? And if so, does anyone have any resources for me to look at? I understand BASIC format strings, but as far as doing conditionals inside them, I don't know where to start. Any thoughts you have would be greatly appreciated.
I run a raspberry pi, which torrents to the server. This uses to automatically grab desired content, and stores the tv shows and anime into folders based on series.
I would like to create a script that i could run which would look at both the anime and tv shows folders, and rename/move the shows to the corresponding anime/tv show folders on my local computer, as the server is not meant for storage. The biggest part of my issue is that I need it to NOT grab anything from folders that contain a file with .part in it, as it will make transmission have issues with the torrent file if one of the files disappears. It would obviously be desirable if folders that were made empty/only left containing small text/image files would be deleted automatically.
So the components I'm looking for:
Checks 2 directories.
Depending on the directory a file is in, Anime/TV shows, renames to new directory Anime/TV shows
Checks with theTVDB for parts of the rename - the current format string I use is:
E:/TV Shows/{n}/{"Season ${s}"}/{n}.{s00e00}.{t}
Will NOT attempt to move/rename files in a folder that contains a file with .part
Cleans up junk folders created.
An additional goal would be for any files in those folders that are not DEFINITELY identified to be moved to a specific folder, as they must be manually dealt with.
I obviously don't intend anyone to write the script for me, I'm more concerned with, are these possible with filebot? And if so, does anyone have any resources for me to look at? I understand BASIC format strings, but as far as doing conditionals inside them, I don't know where to start. Any thoughts you have would be greatly appreciated.