Added media support to Private scraper.

This commit is contained in:
2019-11-05 01:41:13 +01:00
parent 3768b7f541
commit f8f6428e36
3 changed files with 34 additions and 2 deletions

View File

@@ -145,7 +145,13 @@ function scrollBanner(event) {
function photos() {
if (this.release.photos.length) {
return this.release.photos.sort(({ index: indexA }, { index: indexB }) => indexA - indexB);
const set = this.release.photos.sort(({ index: indexA }, { index: indexB }) => indexA - indexB);
if (this.release.trailer) {
return set;
}
return [this.release.poster].concat(set);
}
if (this.release.poster && !this.release.trailer) {