Code Monkey home page Code Monkey logo

Comments (4)

SpeckyYT avatar SpeckyYT commented on June 10, 2024

This is a Live-Stream related problem.
Over here it shows that the duration of the "song" is null, since a Live-Stream doesn't have an "ending time".
IMG_20210210_161022.jpg

(I also get the same error when running nowPlaying)
#29

from discord-music-player.

Hexorshift avatar Hexorshift commented on June 10, 2024

I figured out what's causing the issue. It's most likely happening because some of the fields are null.

[0]   name: 'lofi hip hop radio - beats to relax/study to',
[0]   duration: null,
[0]   author: 'ChilledCow',
[0]   url: 'https://www.youtube.com/watch?v=5qap5aO4i9A',
[0]   thumbnail: 'https://i.ytimg.com/vi/5qap5aO4i9A/hq720_live.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLD0pBKpXiNqTSHm5c4PWbtYvEhs3A',
[0]   queue: Queue {
[0]     _events: [Object: null prototype] {},
[0]     _eventsCount: 0,
[0]     _maxListeners: undefined,
[0]     guildID: '760697375949324308',
[0]     dispatcher: null,
[0]     connection: VoiceConnection {
[0]       _events: [Object: null prototype],
[0]       _eventsCount: 4,
[0]       _maxListeners: undefined,
[0]       voiceManager: [ClientVoiceManager],
[0]       channel: [VoiceChannel],
[0]       status: 0,
[0]       speaking: [Speaking],
[0]       authentication: [Object],
[0]       player: [AudioPlayer],
[0]       ssrcMap: Map(0) {},
[0]       _speaking: Map(0) {},
[0]       sockets: [Object],
[0]       receiver: [VoiceReceiver],
[0]       connectTimeout: Timeout {
[0]         _idleTimeout: -1,
[0]         _idlePrev: null,
[0]         _idleNext: null,
[0]         _idleStart: 16316,
[0]         _onTimeout: null,
[0]         _timerArgs: undefined,
[0]         _repeat: null,
[0]         _destroyed: true,
[0]         [Symbol(refed)]: true,
[0]         [Symbol(kHasPrimitive)]: false,
[0]         [Symbol(asyncId)]: 2576,
[0]         [Symbol(triggerId)]: 0
[0]       },
[0]       [Symbol(kCapture)]: false
[0]     },
[0]     songs: [ [Circular *1] ],
[0]     stopped: false,
[0]     skipped: false,
[0]     volume: 100,
[0]     playing: true,
[0]     repeatMode: false,
[0]     repeatQueue: false,
[0]     [Symbol(kCapture)]: false
[0]   },
[0]   requestedBy: 'Zyleaf#1018',
[0]   seekTime: 0
[0] }

from discord-music-player.

Hexorshift avatar Hexorshift commented on June 10, 2024

This is a Live-Stream related problem.
Over here it shows that the duration of the "song" is null, since a Live-Stream doesn't have an "ending time".
IMG_20210210_161022.jpg

(I also get the same error when running nowPlaying)
#29

I didn't see that you mentioned some fields being null. Yeah, I think that's causing the issue.

from discord-music-player.

Hexorshift avatar Hexorshift commented on June 10, 2024

I am gonna close the issue. Thanks for letting me know (:

from discord-music-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.