This script gather the now playing title from the Windows api. Therefore, it's compatible with any media player that publish the track information trough this api.
Reported working with:
- Deezer (app)
- Spotify (app/web chromium/web firefox)
- YouTube (web chromium / web firefox)
- Also, probably other websites that enable playback control via the multimedia keys
It updates the current title into a custom data in wize bot streaming tool.
It also can update a local text field to display on stream / debug
-
Install Python for Windows (tested with 3.11)
-
Install winsdk package
From a command prompt or powershell run the following command in the python install directory:
.\python.exe -m pip install winsdk==1.0.0b9
-
Log onto your Wize Bot account and gather the apikey:
If you don't want to use an online service you can also add a text source to update
-
Open OBS and go to scripts
Tell OBS where you have installed python
Add the script
wizebot-now-playing.py
from the src directory to OBS and configure it -
Configure Wize Bot to use the Custom data
Eg: use the tag in a command response using
$custom_data(obs-np)
. Replaceobs-np
to match the key you put in the settings
For more information please read Wize Bot documentation about custom datas: https://support.wizebot.tv/docs/api_custom_datas