xvideosx 1.5.1 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,5 @@
|
|
1
1
|
/* eslint-disable linebreak-style */
|
2
2
|
/* eslint-disable no-undef */
|
3
|
-
const cheerio = require('cheerio');
|
4
3
|
const puppeteer = require('puppeteer');
|
5
4
|
|
6
5
|
const newFresh = async ({ url, puppeteerConfig } = {}) => {
|
@@ -15,18 +14,6 @@ const newFresh = async ({ url, puppeteerConfig } = {}) => {
|
|
15
14
|
const titles = document.querySelectorAll('.title');
|
16
15
|
const data = [];
|
17
16
|
thumbs.forEach((thumb, index) => {
|
18
|
-
const $ = cheerio.load(thumb[index]);
|
19
|
-
const videoScript = $('#video-player-bg > script:nth-child(6)').html();
|
20
|
-
const files = {
|
21
|
-
low: (videoScript.match('html5player.setVideoUrlLow\\(\'(.*?)\'\\);') || [])[1],
|
22
|
-
high: videoScript.match('html5player.setVideoUrlHigh\\(\'(.*?)\'\\);' || [])[1],
|
23
|
-
HLS: videoScript.match('html5player.setVideoHLS\\(\'(.*?)\'\\);' || [])[1],
|
24
|
-
thumb: videoScript.match('html5player.setThumbUrl\\(\'(.*?)\'\\);' || [])[1],
|
25
|
-
thumb69: videoScript.match('html5player.setThumbUrl169\\(\'(.*?)\'\\);' || [])[1],
|
26
|
-
thumbSlide: videoScript.match('html5player.setThumbSlide\\(\'(.*?)\'\\);' || [])[1],
|
27
|
-
thumbSlideBig: videoScript.match('html5player.setThumbSlideBig\\(\'(.*?)\'\\);' || [])[1],
|
28
|
-
};
|
29
|
-
|
30
17
|
const anchor = thumb.querySelector('a');
|
31
18
|
const img = thumb.querySelector('img');
|
32
19
|
const text = titles[index];
|
@@ -41,7 +28,7 @@ const newFresh = async ({ url, puppeteerConfig } = {}) => {
|
|
41
28
|
thumb,
|
42
29
|
title,
|
43
30
|
url,
|
44
|
-
|
31
|
+
|
45
32
|
});
|
46
33
|
}
|
47
34
|
});
|