Added media support to Private scraper.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user