Files
kissasian-downloader/src/classes/media/Movie.js
T

23 lines
423 B
JavaScript
Raw Normal View History

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