An open API service indexing awesome lists of open source software.

https://github.com/webcooltz/bulk-rename

Helps users to bulk rename files and auto-complete metadata
https://github.com/webcooltz/bulk-rename

bulk-operation metadata nodejs rename

Last synced: 3 months ago
JSON representation

Helps users to bulk rename files and auto-complete metadata

Awesome Lists containing this project

README

          

# bulk-rename instructions

## Table of Contents

- [Input](#input)
- [Running the app](#running-the-app)

## Input

- Put your info into the `input.json` file in the 'input' folder
- Include quotes around the string you put in

`imdbId`:

- The show's IMDB title ID
- Found in the URL [imdb.com/title/tt0417299](https://www.imdb.com/title/tt0417299)
- Example: `"tt0417299"`

`fileDirectory`:

- The file directory where your videos are kept
- Example: `"D:/TV Shows/Person of Interest (2011)/season1/"`
- It should fix it automatically if the directory address is wrong, but try to put it in the format above

### File example

`{
"imdbId": "tt0111161",
"fileDirectory": "D:/TV Shows/Person of Interest (2011)/season1/"
}`

## New Input ?

- Scrape data manually using a Chrome extension
- Add episode data to /input/episodes.csv
- Add show data to /input/show-info.csv

## Running-the-app

- Open in VS Code or another IDE

### Download packages

- Run `npm i` to download the packages

#### Pre-scraped data

- Scrape data using Chrome extension
- Paste episode data into /input/episodes.csv
- Paste show data into /input/show-info.csv
- Run `npm run convert` to convert episode data
- Run `npm run convert2` to convert show data

### Getting current video metadata

- Run `npm run prep` to get the videos' metadata in your directory listed in the /input/input.json file
- It will compare the scraped IMDB data and match them up
- Double-check the info is correct before proceeding

### Renaming videos

- Run `npm run rename`

#### If a video failed

- Check the `results/failedVideos.json` file to see which videos failed
- You may have to manually fix these (using iTunes or another program)

### Acceptable scenarios

- S06E01.mkv

#### Not working

- Stargate.SG-1.S07E01.720p.BluRay.x264-BORDURE.mkv

## Deprecated

### Scraping episode/show data

- Run `npm run scrape` to scrape IMDB and get the show's info saved
- Double-check the info is correct before proceeding

### Changing video file metadata

- Run `npm run change` to change your video metadata
- Double-check there are no errors
- Delete the old video files