Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Get Duration in API

Status
Not open for further replies.

akira_txt

Member
Greetings, How can I get the duration of a song when is playing? Is possible?

I get this info with PHP API from a yt playlist:

Code:
Array
(
[v] => 0.9.9-8f70ff3
[currentTrack] => File Object
(
[uuid] => xxxxxxxxxxxxxx
[parent] => xxxxxxxxxxxx
[type] => ytdl
[mimeType] =>
[title] => Amateras Records -Tear Rain (cYsmix feat Emmy)
[artist] =>
[tempTitle] =>
[tempArtist] =>
[album] =>
[albumArtist] =>
[track] =>
[totalTracks] =>
[copyright] =>
[genre] =>
[thumbnail] =>
[codec] =>
[duration] =>
[bitrate] =>
[channels] =>
[samplerate] =>
[filesize] =>
[filename] =>
)

[position] => 32345
[running] => 1
[playing] => 1
[shuffle] => 1
[repeat] =>
[playlist] => xxxxxxxxxxxxx
[playlistTrack] => 136
[volume] => 50
[needsRestart] =>
[queueLen] => 0
[queueVersion] => 0
[modes] => 0
[downloaded] => 71715098
)
 

Raphraph

Donor
is awesome!
Contributor
Insider
Currently I don't think it's possible to get the duration of a youtube-song... :/
 

GetMeOutOfHere

Active Member
is awesome!
V.I.P.
Contributor
Insider
if the bot plays a track via !yt. You can see the red status bar moving in the interface from left to right and it seems, that the interface the duration knows ....
 
Last edited:
Status
Not open for further replies.
Top