Replies: 7 comments 34 replies
-
Howdy! I've been looking for a workaround for YouTube as well. I use MusicBot for when I run a D&D campaign and I just wanted to thank you. I was originally going to ask for help on how to to integrate the fork, but just dropping the updated .jar file in the Documents folder and launching it got the bot to play YouTube links again. Should I worry about any of the other updated files you provided? |
Beta Was this translation helpful? Give feedback.
-
MusicBot didn't work for me, but this did; without enabling the YouTubeOAuth that I thought was the issue. Any idea why your version is working and not the main MusicBot? It isn't using my automatically signed in account right? Since I didn't have to go through any YouTube auth page I don't think it is.. |
Beta Was this translation helpful? Give feedback.
-
Excuse me hello, I use your file and it works for a few days just for the music bot to died again...Is there anything I can do to fix it ? Here is the error code [20:28:13] [INFO] [YoutubeAccessTokenTracker]: Updating YouTube visitor id succeeded, new one is CgtMLXV1VlRYYmV3RSiu1Mi4BjIKCgJBVRIEGgAgMzoMCAEgn9miyufFioln, next update will be after 600 seconds. |
Beta Was this translation helpful? Give feedback.
-
Popping in to give a simpler alternative after this music bot stopped working with Youtube entirely (even with the fork). Made a simple bot to work with Youtube only for now, but with an extremely easy deployment process. |
Beta Was this translation helpful? Give feedback.
-
This worked flawlessly for me after logging in with Oauth2! This should honestly be merged somehow. In my experience with yt-dlp, using cookies can be a bit more reliable then Oauth2. Its another option worth looking into. For anyone trying to figure out how to set it up, go to the repo, download the jar file, place it in the same directory as your broken bot, and run the new MusicBot.jar file. If it works out of the box, great. Otherwise, you need to actually use Oauth2, so add the If google doesn't accept it, it may say something like 'something went wrong', (which it hasn't for me in my past experience with yt-dlp Oauth2) then there's one option that MIGHT work. For me when I was trying Oauth2 with yt-dlp, I was running this all on an Oracle Cloud VM, but the authentication was happening on my local PC. I wanted to try using the VM as a VPN for personal use, so I set up WIreGuard. Since I already had my VPN set up before this authentication stuff, I just decided to use it. So I turned it on and followed the authentication steps, that way the prompt to sign in and the actual sign-in attempt appeared from the same IP, thus looking totally normal to google. I can't guarantee this will work for you though. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
To create a Proof of Origin token (PO token), you'll need to ensure your requests to YouTube are properly authenticated with the necessary headers and tokens as outlined by YouTube's API , still it foils down to stuff of authentication, youtube can always introduce new methods of authen. |
Beta Was this translation helpful? Give feedback.
-
EDIT: As of right now the bot is currently broken. Will look into a fix and update the fork
I see there are a lot of people talking about how JMusicBot doesn't work for YouTube. I just wanted to put it here for those interested, I made a Fork that merged a few different pull requests together. Notably a YouTube fix, a dependency fix to build the project myself, and a makefile to build the project easier. Here is a link to my fork if anyone is interested:
https://github.com/d-pacheco/MusicBot
Edit:
To work with the new YouTube auth, you need to add
youtubeoauth2=true
to your config.txt file. Please note that you should be linking your google account with a burner google account, not your main accountI also added a way for you to run this as a docker container if you are running this on a Linux server for example.
Beta Was this translation helpful? Give feedback.
All reactions