twlite / node-xvdl

🔞 Video downloader for xvideos.com written in pure JavaScript.
https://npmjs.com/package/xvdl
Other
11 stars 2 forks source link

TypeError: Cannot read properties of null (reading 'textContent') #3

Open Error-Cezar opened 2 years ago

Error-Cezar commented 2 years ago

so i was trying to get info of a video but i get TypeError: Cannot read properties of null (reading 'textContent')

image

Alimsoftware commented 1 month ago

Updated Main.js

const Util = require("./Util"); const Constants = require("./Constants"); const miniget = require("miniget"); const m3u8 = require("m3u8stream"); const { PassThrough } = require("stream");

const createStream = () => { const stream = new PassThrough({ highWaterMark: 1024 * 512, }); stream.destroy = () => { stream._isDestroyed = true; }; return stream; };

class XVDL { constructor() { throw new Error("Cannot instantiate static class"); }

/**