xvideosx 1.5.1 → 1.5.2

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
- files,
31
+
45
32
  });
46
33
  }
47
34
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "xvideosx",
3
3
  "description": "xvideos.com api implementation.",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "main": "index.js",
6
6
  "license": "BSD-3-Clause",
7
7
  "repository": {