23 lines
424 B
JavaScript
Raw Normal View History

const Media = require('./Media');
class Movie extends Media {
2021-06-11 23:12:40 -05:00
constructor(name, year, mediaURLs) {
super(name, mediaURLs);
2021-06-11 23:12:40 -05:00
this.year = year;
}
getDownloadPackageName() {
return `${this.name} (${this.year})`;
}
getDownloadDestinationFolder() {
return `${this.name} (${this.year})`;
}
getDownloadFilename(ext) {
2021-06-12 02:04:54 -05:00
return `${this.name} (${this.year}).${ext}`;
}
}
module.exports = Movie;