mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
фикс длительности youtube music
This commit is contained in:
parent
d3442c282f
commit
35e4faf411
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ module.exports = {
|
||||||
return resolve({ playlist: null, info: null });
|
return resolve({ playlist: null, info: null });
|
||||||
const track = {
|
const track = {
|
||||||
title: info.video_details.title,
|
title: info.video_details.title,
|
||||||
duration: info.video_details.duration,
|
duration: info.video_details.durationInSec,
|
||||||
thumbnail: info.video_details.thumbnails[0].url,
|
thumbnail: info.video_details.thumbnails[0].url,
|
||||||
async engine() {
|
async engine() {
|
||||||
return (await playdl.stream(`https://music.youtube.com/watch?v=${info.video_details.id}`, { discordPlayerCompatibility : true })).stream;
|
return (await playdl.stream(`https://music.youtube.com/watch?v=${info.video_details.id}`, { discordPlayerCompatibility : true })).stream;
|
||||||
|
|
Loading…
Reference in a new issue