vankasteelj / opensubtitles-api

nodejs opensubtitles.org api wrapper for downloading and uploading subtitles in multiple langs
110 stars 33 forks source link

Supported in browsers? #44

Closed eioo closed 5 years ago

eioo commented 5 years ago

Is there any browser support or this purely for server-side node.js?

vankasteelj commented 5 years ago

It uses requirejs so I doubt it.

eioo commented 5 years ago

I think you could use bundler like Webpack or Parcel for it. I did some research and it seems XML-RPC package spoofs the User-Agent header, and current modern browsers (FF, Chrome) disallow that completely so it wouldn't work anyways.

ghost commented 4 years ago

i tried using browserify main.js -o bundle.js and it worked, but the bundle.js file size is 1mb+