Skip to content

Helps users to bulk rename files and auto-complete metadata

Notifications You must be signed in to change notification settings

webcooltz/bulk-rename

Repository files navigation

bulk-rename instructions

Table of Contents

Input

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

imdbId:

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

About

Helps users to bulk rename files and auto-complete metadata

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published