1.1.0 • Published 1 year ago

movie-cover v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Movie cover

npm version

Add covers to movies files:

  1. Parse the scene / p2p release name from the filename
  2. search the movie on themoviedb.org
  3. Use ffmpeg to add a cover to the file

Install

npm i movie-cover

Usage

CLI

THEMOVIEDB_KEY="YOUR-API-KEY" movie-cover ./movies/Halloween.II.2009.THEATRICAL.Cut.MULTi3.1080p.Bluray.HDLight-Zone80.mkv

Lib

import { addCoverToMovieFile } from "movie-cover";

await addCoverToMovieFile(
  "./movies/Halloween.II.2009.THEATRICAL.Cut.MULTi3.1080p.Bluray.HDLight-Zone80.mkv",
  "YOUR-API-KEY"
);

Todo

  • support .mp4 files (and maybe other formats)
  • improve the TUI using terminal-image to ask confirmation before doing the change
1.1.0

1 year ago

1.0.0

1 year ago