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

Play songs from youtube #1

Open
davidcollini opened this issue Mar 22, 2022 · 3 comments
Open

Play songs from youtube #1

davidcollini opened this issue Mar 22, 2022 · 3 comments

Comments

@davidcollini
Copy link

Nuclear scrapes data from many sources, but plays it through youtube, is there any way to implement this in Soju, or would that not be possible, or against Spotify's DRM, I hope this feature can be implemented :)

@coffeebank
Copy link
Owner

Thanks for dropping by :) It is a good idea; some brief comments about this:

  • The Spotify API might not let me use the data to search and return Youtube links (I'm not a lawyer)
  • The Youtube API ratelimit on the free plan is insultingly low, only 99 searches/day (one Spotify playlist can blow through this)
  • Scraping the Youtube frontend is possible but may not be a good long-term solution and needs upkeep

One idea I have is to return a link that goes to a Youtube search with the song title and artist prefilled in the search.... That should be safe, but may also not be a great experience.... Thoughts?

@davidcollini
Copy link
Author

Idk what's the best solution for this, but here's another project that scrapes data from YouTube music, maybe it can help you https://github.com/snuffyDev/Beatbump

@davidcollini
Copy link
Author

davidcollini commented Mar 22, 2022

Maybe if you can't find out how to do this, the best thing to do would be the last option, but I feel like there has to be a better way

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

No branches or pull requests

2 participants