bakapear / ytt

YouTubeTools
MIT License
6 stars 1 forks source link

Electron/Nw.js Support? #2

Closed DimPaDev closed 4 years ago

DimPaDev commented 4 years ago

This module works very well for node.js but if you try to use it under electron/nw.js it throws an error which makes it unusable:

Example (using Nw.js or Electron) :

var ytt = require("ytt");
ytt.playlist('PLCxjFBEyIgt1FmIYPZrodi19Vv_Z8K9LJ', true) // or any other method except "format" method

it throws : Uncaught (in promise) TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type Function. Received type object