distubejs / ytdl-core

YouTube video downloader in javascript.
MIT License
286 stars 50 forks source link

Added `rewriteRequest` Option to Enhance Request Flexibility #105

Closed ugo-studio closed 4 weeks ago

ugo-studio commented 2 months ago

I’ve added a rewriteRequest option to the request function, which allows users to modify the URL and request options dynamically before making the request. This could be useful in cases where the request needs to be adjusted on the fly, such as adding custom query parameters or modifying headers.

Here’s a summary of what I’ve changed: