https://github.com/madeindjs/add-movie-cover
Add covers to movies files
https://github.com/madeindjs/add-movie-cover
Last synced: 6 months ago
JSON representation
Add covers to movies files
- Host: GitHub
- URL: https://github.com/madeindjs/add-movie-cover
- Owner: madeindjs
- Created: 2024-03-08T22:07:03.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-12T08:20:26.000Z (about 2 years ago)
- Last Synced: 2025-10-20T12:03:13.012Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Movie cover
[](https://badge.fury.io/js/movie-cover)
Add covers to movies files:
1. Parse the scene / p2p release name from the filename
2. search the movie on [themoviedb.org](https://www.themoviedb.org/)
3. Use [ffmpeg](https://ffmpeg.org/) to add a cover to the file
## Install
```sh
npm i movie-cover
```
## Usage
### CLI
```sh
THEMOVIEDB_KEY="YOUR-API-KEY" movie-cover ./movies/Halloween.II.2009.THEATRICAL.Cut.MULTi3.1080p.Bluray.HDLight-Zone80.mkv
```
### Lib
```js
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](https://www.npmjs.com/package/terminal-image) to ask confirmation before doing the change