фикс длительности youtube music

This commit is contained in:
JonnyBro 2022-08-06 21:31:38 +05:00
parent d3442c282f
commit 35e4faf411

View file

@ -137,7 +137,7 @@ module.exports = {
return resolve({ playlist: null, info: null });
const track = {
title: info.video_details.title,
duration: info.video_details.duration,
duration: info.video_details.durationInSec,
thumbnail: info.video_details.thumbnails[0].url,
async engine() {
return (await playdl.stream(`https://music.youtube.com/watch?v=${info.video_details.id}`, { discordPlayerCompatibility : true })).stream;