You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes issues because getBasicInfo() performs mutations on the ytdl options passed in by the user. When getBasicInfo() is already cached, it isn't invoked, and the mutations on options are not performed. Some of these mutations include
(async()=>{constx=awaitytdl.getBasicInfo("http://www.youtube.com/watch?v=aqz-KE-bpKQ",);consty=awaitytdl.getInfo("http://www.youtube.com/watch?v=aqz-KE-bpKQ");// or ytdl(`https://www.youtube.com/watch?v=aqz-KE-bpKQ`);})();
Debug File
Environment
@distube/ytdl-core version: 4.14.1
Node.js version: v18.20.3
Operating system: Debian GNU/Linux 11
The text was updated successfully, but these errors were encountered:
Describe the bug
getInfo()
callsgetBasicInfo()
But the result of both
getInfo()
andgetBasicInfo()
are cached with the video ID as the cache keyThis causes issues because
getBasicInfo()
performs mutations on the ytdl options passed in by the user. WhengetBasicInfo()
is already cached, it isn't invoked, and the mutations on options are not performed. Some of these mutations includeIn my case, this is causing the default
agent
to be missing.Minimal repro:
Debug File
Environment
The text was updated successfully, but these errors were encountered: