IMDB Episode Scraper (Scripts) Publisher's description
from Chris Nanney
like to keep my TV rips well-organized, and labeled with the correct episode title.
like to keep my TV rips well-organized, and labeled with the correct episode title. IвЂ™ve been using the excellent Bulk Rename Utility to quickly rename with proper series title, season and episode numbersвЂ”but the individual episode titles were always a pain. Begrudgingly, IвЂ™d just copy-paste the titles from Wikipedia, always wanting a way to automate that process.
If you search for вЂњTV episode renamerвЂќ, youвЂ™ll find many utilities that can take care of this in some shape or form, butI didnвЂ™t want to install anything, and I knew it would be more fun to write it myself. I wanted something that would scan the video files, determine the season and episode number of each file, retrieve the title from IMDB and rename accordingly.
After a few hours, I had a script running on my local server that took three inputs:
1. Path to files on my PC
2. Desired series title for the files (i.e. вЂњThe OfficeвЂќ)
3. IMDB series code (i.e. tt0386676)
And produced clean file names, such as вЂњThe Office вЂ“ S02E04 вЂ“ The Fire.aviвЂќ
This post has to do with the first part of the solutionвЂ”retrieving episode info from IMDB. After looking at the source for their episode list pages, I saw the pattern to which they display each episodeвЂ™s information, so it only required a few lines of PHP and Regex to strip out the stuff I wanted and create an array with all seasons and episode titles for a given series.
System Requirements:В· Season
В· Episode number
В· Episode Title
В· Episode Plot
Program Release Status: Major Update
Program Install Support: Install and Uninstall