23 lines
423 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) {
return `${this.name} (${this.year})${ext}`;
}
}
module.exports = Movie;