Skip to main content
# Series Renamer

[![Version](https://img.shields.io/pypi/v/series-renamer.svg)](https://pypi.python.org/pypi/series-renamer)
[![Downloads](https://img.shields.io/pypi/dw/series-renamer.svg)](https://pypi.python.org/pypi/series-renamer)
[![Build Status](https://travis-ci.org/aviaryan/series-renamer.svg?branch=master)](https://travis-ci.org/aviaryan/series-renamer)

Python script that connects to [thetvdb.com](http://thetvdb.com) and renames your TV series in any fashion you want.


### Why another series renamer ?

Other series renaming scripts I tried follow a very error-prone procedure. They scan each filename independently and try to extract all information about the episode from that.
Now my One Piece episodes are named like `opdub283.mp4` and `---one piece episode 691 -u0026 692 english sub full hd.mp4` . How do you expect them to extract any info from this ?

So I decided to make my own *series renamer*. To be able to rename (fix) even badly named files like the above, my script -

* scans the working directory non-recursively
* gets the name of the TV/Anime series the folder has from the user
* gets [TVDB](http://thetvdb.com) information of the TV series the user specified.
* scans through the filenames for potential season numbers / episode numbers. Once you have the series name and the season/episode number accurate, nothing can stop your TV series collection from having a proper name.


## Installing

```bash
pip install series-renamer
```
or download the zip and extract it.

```bash
python setup.py install
```


## Using

* Open **command prompt** aka **terminal** in the directory you want to scan and run the following command.
```
series-renamer
```
* Give the series name. Make sure you write the name as precisely as possible.
* The script will connect to TVDB and then scan the filenames. After that it will give you suggestions on the season numbers/episode numbers of files.
* Choose the appropriate option and move forward. Use option 'a' (automatic) if possible.
* In the end the script will create a log (series-renamer-log.html) in the root of the folder that was currently examined.
* Confirm with (y) and all episodes in the folder will be renamed.


## Features

* Customizable episode renaming format.
* Works even without season information in the filename. It then uses episode_number as the absolute episode_number of the TV Series.
* You can explictly specify season and episode number at runtime.
* Supports multi-episodes separated by hyphen like `Friends [10x17-18].mkv`.
* Subtitle files are automatically renamed.
* More [extra configurations](https://github.com/aviaryan/series-renamer/wiki#configjson) to make sure your tv collection is properly detected and renamed.


## Examples

Some sample logs created by series-renamer can be viewed from [this link](http://aviaryan.github.io/series-renamer/examples/index.html).


## Important

It is recommended you read [some docs](https://github.com/aviaryan/series-renamer/wiki) to be fully comfortable with Series Renamer.


## Requirements

* tvdb-api


## Questions ?

Just create an [issue](https://github.com/aviaryan/series-renamer/issues), I will be glad to be of any help.


Metadata

Release files for series-renamer 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for series-renamer 1.1.2
File Size Uploaded
series-renamer-1.1.2.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for series-renamer 1.1.2
File Interpreter ABI Platform
series_renamer-1.1.2-py2-none-any.whl Python 2 none any Details

Total release size: 30.2 kB

Release files / series-renamer-1.1.2.tar.gz

Download URL series-renamer-1.1.2.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
57e833e1f7a1508f268111546e37b3e8244f6535aa1cea705c1d02a5ab1be0a9
BLAKE2b-256 checksum
How to use checksums
5ec88b274a0f3a0056b78d4228b6cc7096a9366510bc40016a23dd6e3c2adbf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / series_renamer-1.1.2-py2-none-any.whl

Download URL series_renamer-1.1.2-py2-none-any.whl
Size 16.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
f6331263ed9ec36a153657e9f0ef6289a124f32a86584d9005ec2645f39c283c
BLAKE2b-256 checksum
How to use checksums
bddda28e159642d273e94ff93bf845b5952c66ecd758ea70c4603c47bed75ddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.0.0

2 release files

0.7

1 release file

0.6

1 release file

0.5

0.4

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page