🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

episoder

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

episoder

Application for renaming downloaded tv show files

npmnpm
Version
0.1.5
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Episoder

A node.js commandline utility for renaming the files of downloaded TV shows.

This program extracts showname, season and episode infomation from a filename or from user flags and queries the trakt.tv api to get episode title.

Currently only renames to the form Community - S01E04 - Social Psychology.mp4

It should work as a node.js module too, but I haven't really played with it beyond writing tests.

For example, it is able to rename the following files (amongst others):

Community_S01E04.mp4
Community-1x04.mp4
Community.104.mp4
Community - Season 1 Episode 4.mp4

to:

Community - S01E04 - Social Psychology.mp4

Installation

Requirements:

  • trakt.tv api key (available at http://trakt.tv/api-docs/authentication)
  • node.js
  • npm (usually installed with node.js)
sudo npm install -g episoder
sudo episoder --save_api_key 'your-trakt-api-key-goes-here'

Usage

Basic usage:

episoder community-S01E04-ExampleBlagh.mp4

will rename the file Community - S01E04 - Social Psychology.mp4.

In true unix fashion it accepts globbed filenames:

episoder *

Show flag

The --show or -S flag will set a user defined show. If multiple words, please use quotation as per the example

Set custom showname:

episoder --show "parks and recreation" s01e04.avi

renames to Parks and Recreation - S01E04 - Boys Club.avi

Season flag

The --season or -s flag will set a user defined season.

episoder --season 1 archer_2009-04.avi

renames to Archer 2009 - S01E04 - Killing Utne

It will also take words:

episoder --season specials archer_2009-04.avi

renames to Archer 2009 - Specials E04 - Heart of Archness: Part I.avi

It will also take words:

episoder --season specials archer_2009-04.avi

renames to Archer 2009 - Specials E04 - Heart of Archness: Part I.avi

Episode flag

The --episode or -e flag will set a user defined episode.

episoder --episode 4 bobs_burgers_s01e99.mp4

renames to Bobs Burgers - S01E04 - Sexy Dance Fighting

Offset flag

Sometimes the episode info from a filename doesn't quite match up with what's in the trakt.tv database. For example, sometimes pilot episodes are referred to as episode 0 (like in the example) but trakt starts the numbering from 1. If this is the case we can pass an offset value to correct the output.

Set episode offset:

episoder --offset=1 twin_peaks-1x00-pilot.mkv

Renames to Twin Peaks - S01E01 - Pilot.mkv.

Note that although it works for positive numbers without the equality symbol, it won't work for negative numbers, so it is advised to always use --offset= syntax to prevent weirdness.

Force flag

The default behaviour of episoder is to avoid overwriting files. If you really want to overwrite your files, use the --force or -f flag:

episoder --force community-s01e04.mp4

Save api key flag

In order to use the app you will need a trakt api key, available from http://trakt.tv/api-docs/authentication. You can easily save it to the config file in the following way.

episoder --save_api_key "api-key-goes-here"

All this does is create a file in the module's directory called config/traktApiKey.js with the following code:

module.exports = "api-key-goes-here";

Using the --save_api_key flag will clobber any existing file in this spot, so please use with care.

FAQs

Package last updated on 18 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts