
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
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
Requirements:
git clone https://github.com/rohanorton/episoder.git
cd episoder/
npm install
sudo npm link
episoder --save_api_key 'your-trakt-api-key-goes-here'
or, simply:
sudo npm install -g episoder
sudo episoder --save_api_key 'your-trakt-api-key-goes-here'
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 *
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
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
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
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.
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
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
Application for renaming downloaded tv show files
The npm package episoder receives a total of 0 weekly downloads. As such, episoder popularity was classified as not popular.
We found that episoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.