- December 14, 2009
- 2
- 0
- Home Country
-
firsttime poster, longtime lurker - awesome product and an even awesome-er community working to make it even better 
So, after seeing multiple posts about this issue (and being a victim of it myself), I decided to write a little renamer script to solve my problem. All it's really doing is renaming based on date and filename, but it's been working pretty well for me over the last few weeks so I figured I'd share. Ideally you would have a copy of the .ps1 script for each show you need renamed. If you wanted, you could simply call however many .ps1 scripts you have from one .bat file - I'm currently doing this through good ol windows task scheduler
A couple caveats:
-the script is dependent on the fact that you know your seriesid - to get this go here:
http://thetvdb.com/api/GetSeries.php?seriesname="your show name"
this will give you a list of all the show names that match your show - grab the series id and pop that in the $seriesid variable of the script
-speaking of the thetvdb.com, that's what I'm using to scrape episode info, and in order to do so I needed to get an API key. Go get your own, and add it into the script as the $apikey variable.
-here's the list of variables that the script that you will need to supply:
--series id ($seriesid variable)
--an API key for thetvdb.com ($apikey variable)
--a source folder containing the mis-named files ($sourcepath variable)
--a destination folder to put the renamed files in ($destinationpath variable)
--how you would like your showname to show up in the final file ($resultantshowname variable)
--powershell 1.0 installation (bundled with the attached zip file)
The biggest potential problem with the script is that it's relying on a consistent naming convention - YYYY.MM.DD. If for some reason this changes, the script won't work. So far I've been ok, but you never know....
Anyway - hope it can help someone out.....let me know if you have questions on it
jm
So, after seeing multiple posts about this issue (and being a victim of it myself), I decided to write a little renamer script to solve my problem. All it's really doing is renaming based on date and filename, but it's been working pretty well for me over the last few weeks so I figured I'd share. Ideally you would have a copy of the .ps1 script for each show you need renamed. If you wanted, you could simply call however many .ps1 scripts you have from one .bat file - I'm currently doing this through good ol windows task scheduler
A couple caveats:
-the script is dependent on the fact that you know your seriesid - to get this go here:
http://thetvdb.com/api/GetSeries.php?seriesname="your show name"
this will give you a list of all the show names that match your show - grab the series id and pop that in the $seriesid variable of the script
-speaking of the thetvdb.com, that's what I'm using to scrape episode info, and in order to do so I needed to get an API key. Go get your own, and add it into the script as the $apikey variable.
-here's the list of variables that the script that you will need to supply:
--series id ($seriesid variable)
--an API key for thetvdb.com ($apikey variable)
--a source folder containing the mis-named files ($sourcepath variable)
--a destination folder to put the renamed files in ($destinationpath variable)
--how you would like your showname to show up in the final file ($resultantshowname variable)
--powershell 1.0 installation (bundled with the attached zip file)
The biggest potential problem with the script is that it's relying on a consistent naming convention - YYYY.MM.DD. If for some reason this changes, the script won't work. So far I've been ok, but you never know....
Anyway - hope it can help someone out.....let me know if you have questions on it
jm