UNPKG

@localsimp/hentaihaven

Version:

API for accessing hentaihaven.xxx (Updated url by LocalSimp)

34 lines 896 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HentaiHavenVideo = void 0; const entities_1 = require("entities"); class HentaiHavenVideo { constructor(data, tags) { this.data = data; this.tags = []; this.tags = data.tags.map(id => tags.find(tag => tag.id == id)).filter(x => x); } get id() { return this.data.id; } get date_aired() { return this.data.date; } get date_modified() { return this.data.modified; } get slug() { return this.data.slug; } get link() { return this.data.link; } get title() { return entities_1.decodeHTML(this.data.title.rendered); } get raw() { return this.data; } } exports.HentaiHavenVideo = HentaiHavenVideo; //# sourceMappingURL=HentaiHavenVideo.js.map