Youtube Player does not work due to API error

api
bug
youtube
javascript
phantombot

#1

Java Version: 1.8.0_181-b13
OS Version: Windows 10 10.0 (amd64)
Panel Version: 1.1
PhantomBot Version: 2.4.1-NB-20181009 (Revision: 0d7229a)
Stock PhantomBot: Yes

I am having trouble opening the Youtube Module with PhantonBot. It was working nicely for a couple of weeks, but yesterday, the same module does not load anymore, it just keeps loading and loading! These are the errors from the console log:

[10-09-2018 @ 22:47:11.967 GMT] [youtubePlayer.js:740] YoutubeVideo::exception: This video is not allowed to be embedded (ID: umaI-EWGm0M)
[10-09-2018 @ 22:47:12.124 GMT] [youtubePlayer.js:740] YoutubeVideo::exception: This video is not allowed to be embedded (ID: v0fy1HeJv80)
[10-09-2018 @ 22:47:12.282 GMT] [youtubePlayer.js:740] YoutubeVideo::exception: This video is not allowed to be embedded (ID: jQSB5P2NTwQ)
[10-09-2018 @ 22:47:12.438 GMT] [youtubePlayer.js:740] YoutubeVideo::exception: This video is not allowed to be embedded (ID: dfu94Q_RM7o)
[10-09-2018 @ 22:47:12.594 GMT] [youtubePlayer.js:740] YoutubeVideo::exception: This video is not allowed to be embedded (ID: Q9BWDHU_ms4)
[10-09-2018 @ 22:47:12.758 GMT] [init.js:325] (hook.call, yTPlayerState, ./systems/youtubePlayer.js) This video is not allowed to be embedded (ID: 7lO1iBF0p_0)
[10-09-2018 @ 23:01:18.755 GMT] [youtubePlayer.js:831] YoutubeVideo::exception: No data returned.
[10-09-2018 @ 23:09:29.532 GMT] [youtubePlayer.js:1036] YouTube API Failed Lookup: Playlist [default] Index [36] YT ID [AKgjOCuW_MU] Error [This video is not allowed to be embedded (ID: AKgjOCuW_MU)]
[10-09-2018 @ 23:09:29.632 GMT] [youtubePlayer.js:740] YoutubeVideo::exception: This video is not allowed to be embedded (ID: AKgjOCuW_MU)

There were many error logs related to the video not being allowed to be embed, I shorted it down here. I did a search about this bug, and I found out that I had to clean the ytp cache on the chat, and this is what gives me now:

[10-10-2018 @ 18:06:21.730 GMT] [youtubePlayer.js:1036] YouTube API Failed Lookup: Playlist [default] Index [39] YT ID [dfu94Q_RM7o] Error [This video is not allowed to be embedded (ID: dfu94Q_RM7o)]
[10-10-2018 @ 18:06:22.070 GMT] [youtubePlayer.js:740] YoutubeVideo::exception: This video is not allowed to be embedded (ID: dfu94Q_RM7o)

I have made another search, and I saw that I had to update to one of the nightly builds, and so I did. Yet the same error happens, with the same log mentioned above.

Can you guys please help me out on this? People enjoy requesting music on youtube!
Thanks a bunch and keep up with the great work!


#2

Hi,

Have you followed this guide and added an API key to your youtube?


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.