Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highestvideo, highestaudio, videoonly, audioonly #151

Open
ryukenshiroo opened this issue Dec 18, 2024 · 2 comments
Open

highestvideo, highestaudio, videoonly, audioonly #151

ryukenshiroo opened this issue Dec 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ryukenshiroo
Copy link

Qualities don’t work

When I use highestaudio and highestvideo qualities, nothing happens. When I use pipe, my file has no content.

const cookies = JSON.parse(fs.readFileSync('cookies/youtube.json', 'utf8'));
const agent = ytdl.createAgent(cookies);
const audio = ytdl(url, {
   quality: 'highestaudio',
   agent: agent
});
let inputFilePath = `temp/${Func.uuid()}.webm`;
let outputFilePath = `temp/${Func.uuid()}.mp3`;
console.log(`Downloading audio from ${url}...`);

audio.pipe(fs.createWriteStream(inputFilePath))

Filters don’t work

And when I use audioonly and videoonly filters the same thing happens.

Filters that work

And I tried to use audioandvideo and videoandvideo filters, and they worked.

// other code
const audio = ytdl(url, {
   filter: 'audioandvideo',
   agent: agent
});
// other code
// other code
const audio = ytdl(url, {
   filter: 'videoandvideo',
   agent: agent
});
// other code

Environment

  • @distube/ytdl-core version: 4.15.8
  • Node.js version: 20
  • Operating system: Linux
@ryukenshiroo ryukenshiroo added the bug Something isn't working label Dec 18, 2024
@lotte25
Copy link

lotte25 commented Dec 19, 2024

Same here. Only thing you can do for now is downgrading to 4.15.6, do that until the next release where it gets fixed...

@RafaelAlthaus
Copy link

Further debugging showed a 403 error. Same as this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants