discord-player
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "discord-player", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Complete framework to facilitate music commands using discord.js v12", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -753,3 +753,3 @@ const ytdl = require('discord-ytdl-core') | ||
// Stream time of the dispatcher | ||
const currentStreamTime = queue.calculatedStreamTime | ||
const currentStreamTime = queue.voiceConnection.dispatcher.streamTime + queue.additionalStreamTime | ||
// Total stream time | ||
@@ -804,3 +804,3 @@ const totalTime = queue.playing.durationMS | ||
return new Promise((resolve) => { | ||
const currentStreamTime = updateFilter ? queue.voiceConnection.dispatcher.streamTime / 1000 : undefined | ||
const seekTime = updateFilter ? queue.voiceConnection.dispatcher.streamTime + queue.additionalStreamTime : undefined | ||
const encoderArgsFilters = [] | ||
@@ -822,3 +822,3 @@ Object.keys(queue.filters).forEach((filterName) => { | ||
encoderArgs, | ||
seek: currentStreamTime + queue.additionalStreamTime | ||
seek: seekTime / 1000 | ||
}) | ||
@@ -832,4 +832,4 @@ setTimeout(() => { | ||
}) | ||
if (currentStreamTime) { | ||
queue.additionalStreamTime += currentStreamTime | ||
if (seekTime) { | ||
queue.additionalStreamTime = seekTime | ||
} | ||
@@ -836,0 +836,0 @@ queue.voiceConnection.dispatcher.setVolumeLogarithmic(queue.calculatedVolume / 200) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49383
0