@erostools/cli
Version:
The porn organizer tool that works.
63 lines (61 loc) • 1.68 kB
JavaScript
module.exports = {
meta: {
name: "Ass Parade",
altNames: ["AssParade", "AP"],
slug: "assparade",
url: "https://assparade.com",
network: "Bang Bros",
fileName:
"{name} - {item.date} - {item.id} - {item.performers} - {item.title}",
},
filters: {
parseDate: function (dateStr) {
const [
{ value: month },
,
{ value: day },
,
{ value: year },
] = new Intl.DateTimeFormat("en", {
year: "numeric",
month: "2-digit",
day: "2-digit",
}).formatToParts(new Date(dateStr));
return `${year}-${month}-${day}`;
},
stripControlChars: function (str) {
return str.replace(/[\x00-\x1F\x7F-\x9F]/g, "");
},
cleanupReleaseId: function (value) {
return value.replace("Release: ", "");
},
},
scenesSchema: {
URL: "https://bangbros.com/websites/assparade",
ROOT: ".thumbsHolder .echThumb",
ITEMS: {
EXTRACT: {
title: ".thmb_ttl",
thumbnails: [".thmb_pic img.thmbPic_tag:last-child@src"],
url: "a.thmb_lnk@href",
length: ".thmb_pic .tTm",
date:
".thmb_mor .fa-calendar-o+span.faTxt | stripControlChars | parseDate",
performers: [".cast-wrapper a.cast | stripControlChars"],
},
ITEM: {
LINK: "a.thmb_lnk@href",
EXTRACT: {
id: ".vdoCast:last-child | cleanupReleaseId",
tags: [".vdoTags a"],
posters: [".WdgtPic img@src"],
trailers: ["video source@src"],
description: ".vdoDesc",
},
},
PAGINATION: {
NEXT: "#pagination_btn_next@href",
},
},
},
};