Added a movie class so that different movie types (plex vs tmdb) can be converted into a universal movie class
This commit is contained in:
12
src/movie/movie.js
Normal file
12
src/movie/movie.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
class Movie {
|
||||||
|
constructor(title, year) {
|
||||||
|
this.id = undefined;
|
||||||
|
this.title = title;
|
||||||
|
this.year = year;
|
||||||
|
this.release_date = undefined;
|
||||||
|
this.library = undefined;
|
||||||
|
this.type = undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Movie;
|
||||||
Reference in New Issue
Block a user