YouTube RichPresence is a Chrome extension that tracks your YouTube activity (video playing, browsing, searching, and watching Shorts) and posts the activity to a localhost server. This activity is then displayed on Discord using pypresence. This is a beta version with a lot of imporovements to be done.
- Detects when a YouTube video is playing, paused, or when browsing/searching.
- Sends activity data (including video title, author, URL, etc.) to a localhost server.
- Updates your Discord status with the activity information.
- Python 3.x
- Google Chrome
- Flask
- pypresence
- flask-cors
- Clone this repository:
git clone https://github.com/JanLewDev/YouTube_RichPresence.git cd YouTube_RichPresence
- Open
chrome://extensions/
in Chrome - Enable "Developer Mode"
- Click on "Load unpacked" and select the extension directory from this repository.
- Install the required Python packages with
pip install flask pypresence flask-cors
- Go to the Discord Developer Portal and create an application
- Update
richpresence.py
with the generated applicaiton id - Run the Flask server and the presence updater with
python richpresence.py
. ├── extension │ ├── manifest.json │ ├── background.js │ ├── content.js │ ├── popup.html │ └── icons │ └── yt.jpg └── richpresence.py