diff --git a/src/Commands/Play.cpp b/src/Commands/Play.cpp index 07b1304..704c1a3 100644 --- a/src/Commands/Play.cpp +++ b/src/Commands/Play.cpp @@ -64,9 +64,10 @@ void commands::Play::operator()(const dpp::slashcommand_t& event) time_t SongLength = int(document["duration"]); char SongLengthStr[10]; tm t; + t.tm_mday = SongLength / 86400; + t.tm_hour = (SongLength % 86400)/3600; + t.tm_min = (SongLength % 3600)/60; t.tm_sec = SongLength%60; - t.tm_min = SongLength/60; - t.tm_hour = SongLength/360; strftime(SongLengthStr, sizeof(SongLengthStr), "%X", &t); FQueueElement Data = { diff --git a/src/MusicQueue.cpp b/src/MusicQueue.cpp index 7719736..b2b90cf 100644 --- a/src/MusicQueue.cpp +++ b/src/MusicQueue.cpp @@ -136,6 +136,8 @@ void MusicQueue::markerCallback() return; } + //v->voiceclient->error(4014); + /* load the audio file with oggz */ OGGZ *track_og = oggz_open(("Music/" + music.fileName + ".ogg").c_str(), OGGZ_READ);