Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkg-dot-zip/musicinbrowserdetectorfordiscord
A simple YouTube Music Rich Presence client for Discord just like the built-in Spotify one that retrieves info from your browser!
https://github.com/pkg-dot-zip/musicinbrowserdetectorfordiscord
chrome csharp discord discord-net discord-rich-presence discord-rpc rich-presence selenium youtube-music yt-music
Last synced: 4 days ago
JSON representation
A simple YouTube Music Rich Presence client for Discord just like the built-in Spotify one that retrieves info from your browser!
- Host: GitHub
- URL: https://github.com/pkg-dot-zip/musicinbrowserdetectorfordiscord
- Owner: pkg-dot-zip
- Created: 2024-10-20T08:16:16.000Z (18 days ago)
- Default Branch: master
- Last Pushed: 2024-11-02T20:23:10.000Z (5 days ago)
- Last Synced: 2024-11-02T20:25:44.384Z (5 days ago)
- Topics: chrome, csharp, discord, discord-net, discord-rich-presence, discord-rpc, rich-presence, selenium, youtube-music, yt-music
- Language: C#
- Homepage:
- Size: 1020 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
YT Music RPC Client
[![Stars](https://img.shields.io/github/stars/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp.svg)](https://github.com/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp/stargazers)
[![GitHub Issues](https://img.shields.io/github/issues/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp.svg)](https://github.com/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp/issues)
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp.svg)](https://github.com/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp/pulls)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp/total)A simple YouTube Music Rich Presence client for Discord just like the built-in Spotify one!
## 📝 Table of Contents
- [About](#about)
- [Usage](#usage)
- [Built Using](#built_using)
- [Authors](#authors)## 🧐 About
An optimized and plug and play console application that automatically retrieves your YouTube Music from your browser.### What does it do? 🤔
You know the Rich Presence that you see when your friends listen to [Spotify](https://open.spotify.com/)?This project replicates that but for [YouTube Music](https://music.youtube.com/)! It will automatically retrieve all data from your currently opened browser,
meaning that you only need to open YouTube Music in your browser and have Discord open for this to work. We truly live in the golden age! ✨#### Supported Browsers 🕸
Please feel free to commit a PR to support more browsers, since there are [Selenium](https://www.selenium.dev/selenium/docs/api/dotnet/) webdrivers for other browsers too!| Browser | Currently Supported | Instructions |
| ------- | --------- | ----- |
| [](https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg) Chrome | ✅ | [Here](docs/_instructions_chrome.md) |
| [](https://upload.wikimedia.org/wikipedia/commons/a/a0/Firefox_logo%2C_2019.svg) Firefox | ❌ | - |
| [](https://upload.wikimedia.org/wikipedia/commons/9/98/Microsoft_Edge_logo_%282019%29.svg) Edge | ❌ | -|
| [](https://upload.wikimedia.org/wikipedia/en/9/95/Internet_Explorer_9.png) Internet Explorer | ❌ | - |#### Supported Streaming Services
Obviously the project's original scope was only YouTube Music, hence it's the only currently supported. Adding support for other services is not a priority.| Streaming Service | Currently Supported |
| ------- | --------- |
| [](https://upload.wikimedia.org/wikipedia/commons/6/6a/Youtube_Music_icon.svg) YouTube Music | ✅ |### Why?! 😱
One of my friends listens to music on Spotify the entire day during work, so I can see what music he listens to. However, other people in my friendgroup use YouTube Music, which does not have rich presence support. This screamt for a solution!#### But that solution already exists!
There are indeed already multiple implementations for this. However, most of them had one of the following issues:
- Some were using way **too much RAM** for what it should do.
- Some were **reading history files** in your browser (I am not kidding! I have actually seen this!!!).
- Some contain an **unnecessary GUI**.
- They were programmed using **complicated unoptimized libraries** to achieve their goal.### Features 🌟
- Displays the artist and title! 🎙
- Shows the album (if applicable) the song is a part of! 💿
- Artwork is supported and looks better than ever! 😍
- Timestamp of where you are listening! ⌚
- Button to listen along or download this client as well! 🎧
- So performant you will not notice you are running this program! 🌪## 🎈 Usage
1. Open the Discord app. -> _This does not work in your browser!_
1. Select a browser of your choosing.
1. Go to the docs folder in this project and look for that browser. For example the Chrome instructions [here](docs/_instructions_chrome.md).
1. Follow that one instruction and you're already done. From now on you only have to boot this software and Bob's your uncle!## ⛏️ Built Using
- [Visual Studio](https://visualstudio.microsoft.com/) - IDE used
- [C#](https://dotnet.microsoft.com/en-us/languages/csharp) - Language used to program in
- [Selenium](https://www.selenium.dev/selenium/docs/api/dotnet/) - Used for interacting with your browser
- [Discord RPC C#](https://github.com/Lachee/discord-rpc-csharp) - C# custom implementation for Discord Rich Presence. For our project we are using a [prerelease](https://github.com/Lachee/discord-rpc-csharp/releases/tag/v1.3.0)## ✍️ Authors
- [@pkg-dot-zip](https://github.com/pkg-dot-zip) - Idea & Initial work.See also the list of [contributors](https://github.com/pkg-dot-zip/YoutubeMusicDiscordRichPresenceCSharp/contributors) who participated in this project.