mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
fix undefined compare
This commit is contained in:
parent
2e48f43b72
commit
b8396da7d2
@ -31,7 +31,7 @@ function streamURLbuilder (itemID, bitrate) {
|
||||
}
|
||||
|
||||
function startPlaying (voiceconnection = discordclientmanager.getDiscordClient().user.client.voice.connections.first(), itemIDPlaylist = currentPlayingPlaylist, playlistIndex = currentPlayingPlaylistIndex, seekTo, disconnectOnFinish = _disconnectOnFinish) {
|
||||
log.debug("start playing ",playlistIndex, ". of list: ",itemIDPlaylist," in a voiceconnection?: ", isNaN(voiceconnection));
|
||||
log.debug("start playing ",playlistIndex, ". of list: ",itemIDPlaylist," in a voiceconnection?: ", typeof voiceconnection !== "undefined");
|
||||
isPaused = false;
|
||||
currentPlayingPlaylist = itemIDPlaylist;
|
||||
currentPlayingPlaylistIndex = playlistIndex;
|
||||
@ -77,7 +77,7 @@ function startPlaying (voiceconnection = discordclientmanager.getDiscordClient()
|
||||
}
|
||||
|
||||
async function spawnPlayMessage (message) {
|
||||
log.debug("spawned Play Message: ",message);
|
||||
log.debug("spawned Play Message?: ",typeof message !== "undefined");
|
||||
const itemIdDetails = await jellyfinClientManager.getJellyfinClient().getItem(jellyfinClientManager.getJellyfinClient().getCurrentUserId(), getItemId());
|
||||
const imageURL = await jellyfinClientManager.getJellyfinClient().getImageUrl(itemIdDetails.AlbumId || getItemId(), { type: "Primary" });
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user