Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every song is says "Invalid video!" #1

Open
MAPReiff opened this issue Feb 24, 2017 · 13 comments
Open

Every song is says "Invalid video!" #1

MAPReiff opened this issue Feb 24, 2017 · 13 comments
Assignees
Labels

Comments

@MAPReiff
Copy link

Hello,
So I used the module on my bot and I found something rather interesting. When running the bot on windows (I run it 24/7 on an old PC) every link was deemed invalid by the bot. However, when I copied the code to my MacBook and ran the bot, everything functioned fine. There was no error in command prompt, and I cannot seem to figure out what is causing the issue.

@derekmartinez18
Copy link
Owner

I don't have it so bad, but yeah I have noticed on Windows it throws more invalid errors. I think this might be an issue with the dependency for fetching the details from YouTube. The best solution might just be to use request against the YouTube API.

I'll need to look into this a bit more.

@derekmartinez18
Copy link
Owner

I have a solution I'll be pushing in a bit which uses a new fetching library. It'll require you to get a YouTube v3 API Key, which is fairly easy to obtain. This will also return the searching capability.

@derekmartinez18 derekmartinez18 self-assigned this Feb 24, 2017
@MAPReiff
Copy link
Author

Where can I get one of the API keys?

@derekmartinez18
Copy link
Owner

@derekmartinez18
Copy link
Owner

I've pushed this update.

Let me know if it resolves this problem.

@MAPReiff
Copy link
Author

MAPReiff commented Feb 24, 2017 via email

@MAPReiff
Copy link
Author

Now says I'm missing my Opus engine.

@derekmartinez18
Copy link
Owner

are you sure you have the node-opus package?

@MAPReiff
Copy link
Author

MAPReiff commented Feb 26, 2017 via email

@derekmartinez18
Copy link
Owner

This is very weird, but sounds like an issue with node-opus or discord.js itself, my end of things has nothing to do with it and I am not getting this on my Windows machine, my Macbook, or my Linux VM. What is the exact error message? ..I might be able to help find a solution.

@MAPReiff
Copy link
Author

MAPReiff commented Feb 26, 2017 via email

@MAPReiff
Copy link
Author

Any ideas?

@derekmartinez18
Copy link
Owner

The only thing that would throw that is if for some reason Discord.js couldn't find the opus dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants