Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
bug fixes to scenex library and other itty bitty changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Berget committed May 16, 2021
1 parent e9f5fe7 commit 96057e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/class/Movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,11 @@ export class Movie {
// Rename the movie file
if (config.movieExtensions.includes(fileExt)) {

console.log(this.#movie.tags);
// Just some type normalization
if (this.#movie.tags.type.match(/bluray/i)) { this.#movie.tags.type = 'BluRay'; }
if (this.#movie.tags.type.match(/webdl|web-dl|web/i)) { this.#movie.tags.type = 'WEB-DL'; }
if (this.#movie.tags.type.match(/web-rip|webrip/i)) { this.#movie.tags.type = 'WEBRip'; }
if (this.#movie.tags.type.match(/webdl|web-dl|web/i)) { this.#movie.tags.type = 'WEB-DL'; }
if (this.#movie.tags.type.match(/dvd|dvd-rip|dvdrip/i)) { this.#movie.tags.type = 'DVDRip'; }
if (this.#movie.tags.type.match(/vhs|vhs-rip|vhsrip/i)) { this.#movie.tags.type = 'VHSRip'; }
if (this.#movie.tags.type.match(/hdrip|hd-rip/i)) { this.#movie.tags.type = 'HDRip'; }
Expand Down

0 comments on commit 96057e0

Please sign in to comment.