# TV Episode Renaming Script

**URL:** <https://resource.dopus.com/t/tv-episode-renaming-script/5695>\
**Category:** Rename Presets\
**Tags:** script, vbscript\
**Created:** [March 15, 2008, 1:50am UTC](https://resource.dopus.com/t/tv-episode-renaming-script/5695 "2008-03-15T01:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![BrokenNails](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@BrokenNails](https://resource.dopus.com/u/BrokenNails)\
**Post date:** [March 15, 2008, 1:50am UTC](https://resource.dopus.com/t/tv-episode-renaming-script/5695/1 "2008-03-15T01:50:41Z")

</div>

This script is useful for renaming large numbers of TV episode files from the "S01E05" or "1x05" format to a more useable "1.05 - Episode Title" format.  
eg. `Lost.S04E06.HDTV.XViD-DOT.avi` becomes `4.06 - The Other Woman.avi`

### Instructions:

1. Create a file called eps.txt and place it in the same directory as the files being renamed.

2. Go to [tv.com](http://tv.com), locate the episode lists for the show you wish to rename and copy the table into the eps.txt file for all the seasons you require. You should end up with each line being formatted somewhat similar to this:

3. As [tv.com](http://tv.com) sequentially numbers the episode lists (eg the first episode of season 2 might be #25) you will need to indicate (within the eps.txt file) where a new season begins.  
Do this by placing a hash (#) on a line by itself before the line containing the first episode of the new season:

4. Save the eps.txt file.

5. You should now be able to select the files to be renamed, go to the renaming dialog, and choose this script!

### Download:

- [TV Episodes.orp](https://resource.dopus.com/uploads/default/original/3X/e/d/edfca83e2cba7671815735ca588f1e0fe2eca682.orp) (5.14 KB)
- See: [How to use Rename Presets from this forum](https://resource.dopus.com/t/how-to-use-rename-presets-from-this-forum/26726/3)

### See Also:

> [@Miran's TheTVDB Renamer](https://resource.dopus.com/t/mirans-thetvdb-renamer/10252):
>
> This rename script tries to get the Episode Title of TV-Shows from [theTVDB.com](http://theTVDB.com) and adds it to the File-Name. Warnings: This script is very basic, therefore there is no tolerance regarding the directory structure and file naming. …

> [@TheMovieDB Poster&Info Downloader V2.0](https://resource.dopus.com/t/themoviedb-poster-info-downloader-v2-0/17718):
>
> Overview This is an updated Version of the [MovieDB Poster Downloader Script](https://resource.dopus.com/t/mirans-moviedb-poster-downloader/10334/1) utilizing the new DOpus 11 Script functionality. This script will add a new command to DOpus to download Movie Poster, Backdrops and Information from [TheMovieDB.org](http://themoviedb.org). Insta…

> [@TV Episode XBMC Renamer](https://resource.dopus.com/t/tv-episode-xbmc-renamer/19056):
>
> Note: This is not a Rename Preset; it is a Script Add-In which adds a new command that can be used to rename files (e.g. by using the command in a toolbar button or hotkey). Since it involves renaming files, it's still in the Rename Presets area t…

---

_[View the full topic](https://resource.dopus.com/t/tv-episode-renaming-script/5695)._
