Closed warren-bank closed 1 month ago
solved:
OK, so lets file this under serendipitous.. PR#111 was opened today, and it fixes the issue! Please merge.
you can take inspiration from:
https://addons.mozilla.org/en-US/firefox/addon/youtube_downloader_webx/
where https://github.com/fent/node-ytdl-core is actually used.
However, I'm not sure this is the proper place for this discussion.
@warren-bank Thanks for the fix, works like a charm, I had to temporarily replace it hardcode until a new release to fix it but it did the trick.
@warren-bank I know it is not relevant to the issue, but do you have any solution for auto generating cookies as they seem to be expired after certain time?
@require
uses a relative pathPresumably, the messy part is how to replace
undici
with afetch
wrapper. Theagent
class is no-longer used, and we're relying on the browser to manage cookies. As is, allfetch
requests get a 200 response. And yet, no joy.. the videos return 403.If anyone wants a working browser-build to use in userscripts (etc), then I need some help to figure out what request/cookie is missing.. so the request for the video URLs is allowed.