Live YouTube Entertainment (LYTE) is a program that allows viewers of a live stream to use commands to queue music.
Current Version: 1.9.0
Documentation is also available at https://stroepwafel.au/LYTE/documentation
LYTE is licensed under the AGPL-3.0.
If you want to use LYTE in a commercial, proprietary, or hosted product without releasing your source code, a commercial license is available.
Contact: contact@stroepwafel.au
If you make money from the use of or find this program helpful and interesting, you can support me on GitHub Sponsors. Your support is completely optional, but it helps me keep building tools like this — and maybe one day, turn it into my full-time job!
- Commands
- Setup
- Temporarily Disabling real-time protection
- Config Documentation
- YOUTUBE_VIDEO_ID
- RATE_LIMIT_SECONDS
- TOAST_NOTIFICATIONS
- PREFIX
- QUEUE_COMMAND
- VOLUME
- THEME
- ALLOW_URLS
- REQUIRE_MEMBERSHIP
- REQUIRE_SUPERCHAT
- MINIMUM_SUPERCHAT
- ENFORCE_ID_WHITELIST
- ENFORCE_USER_WHITELIST
- AUTOREMOVE_SONGS
- AUTOBAN_USERS
- SONG_FINISH_NOTIFICATIONS
- banned_IDs.json
- banned_users.json
- whitelisted_IDs.json
- whitelisted_users.json
- Gallery
- Notes
- Stars
The default command to queue a song is !queue <VIDEO_ID>, where <VIDEO_ID> is the ID for the YouTube music video (everything after ?v=). The command listener (default !) and command (default queue) can be changed in the config if desired.
Important
By default, this command only works with IDs of videos that are on YouTube Music; regular videos will not play. This is because YouTube blocks links in livestream chats.
Warning
This Program is known to not work on linux, I am working on this, but it is not my main priority. if you have gotten it to work on linux without removing any functionality, you can create a PR, and I will review it.
- Download LYTE_Installer and extract the folder (Installer source files can be found here, you can even download from the action if you dont trust the release)
Important
Windows sometimes takes offense to this file for some reason, so you may have to temporarily disable Real-time protection for the time being.
- Run LYTE_Installer.exe and follow the prompts
- The program can also be uninstalled easily through this method
- Download and extract the latest release's .exe file to any folder on your computer (this is because the .exe will create files upon execution)
- If not installed already, install Python. During installation, please make sure the box at the bottom labelled "add Python.exe to PATH" is ticked
- Check whether pip was added to Path correctly by running
pip install --upgrade pipin the terminal; this will both make sure pip is correctly installed and that it is up-to-date - Install VLC for your computer appropiately. MAKE SURE TO USE THE SAME ARCHITECTURE AS YOUR PYTHON INSTALL
Warning
VLC's architecture MUST be the same as python (often x64), to install x64 VLC, on the downloads page click the arrow on the right of Download VLC and select Windows 64bit
- Run the
LYTE.exefile located in whatever folder you saved the release to.
Important
If you are using Windows, a pop-up may appear stating that "Windows Protected Your PC." If you trust this program, click "More info" then "Run anyway"
- In the window that opened, change
YOUTUBE_VIDEO_IDto the ID of your live stream (i.e., the characters at the end of the URL, after the?v=) - OPTIONAL: Change the other configs. Documentation can be found in Config Documentation
- Press "Save and Start"
- A separate window will open, here you can play/pause, skip the song or go back, refresh the UI, change the volume, or scrub through the music. You can also open the settings tab to edit the settings while the program is running, and you can change themes from the View menu.
- If you want to quit the program, please use the
Quitbutton; otherwise, the program may not close correctly, and you will have to close the terminal manually.
- Download and extract the source to any folder on your computer (clone repo or download latest release source code)
- If not installed already, install Python. During installation, please make sure the box at the bottom labelled "add Python.exe to PATH" is ticked
- Check whether pip was added to Path correctly by running
pip install --upgrade pip; this will both make sure pip is correctly installed and that it is up-to-date - Install the required Python libraries (found in Src/requirements.txt) using pip (normally included in Python)
- Install VLC for your computer appropiately.
Warning
VLC's architecture MUST be the same as python (often x64), to install x64 VLC, on the downloads page click the arrow on the right of Download VLC and select Windows 64bit
- Run main.py in the Src folder:
For Windows:- Press Win+r to open the run dialogue
- Type "cmd" and hit Enter to open the command prompt
- Using the command prompt, navigate to where you downloaded the files (using
cd <path to folder>) - Navigate to the Src folder:
cd Src - Type
python main.pyand hit enter
- In the window that opened, change
YOUTUBE_VIDEO_IDto the ID of your live stream (i.e., the characters at the end of the URL, after the?v=) - OPTIONAL: Change the other configs. Documentation can be found in Config Documentation
- Press "Save and Start"
- A separate window will open, here you can play/pause, skip the song or go back, refresh the UI, change the volume, or scrub through the song. You can also open the settings tab to edit the settings while the program is running and you can change themes from the View menu.
- If you want to quit the program, please use the
Quitbutton; otherwise, the program may not close correctly, and you will have to close the terminal manually.
- Press Windows + S to open Search, type Windows Security in the text field, and click on the relevant result.
- Click on Virus & threat protection.
- Click on Manage settings under Virus & threat protection settings.
- Disable the toggle under Real-time protection.
- Confirm the action if prompted by User Account Control (UAC).
- Re-enable the toggle under Real-time protection once you have finished installing.
- Press Windows + I to open Settings.
- Go to Privacy & Security > Windows Security.
- Click on Virus & threat protection.
- Under Virus & threat protection settings, click Manage settings.
- Toggle Real-time protection to Off.
- Confirm the action if prompted by User Account Control (UAC).
- Re-enable the toggle under Real-time protection once you have finished installing.
This is where you enter the ID of your livestream.
How long a user has to wait before they can queue another song, in seconds.
Setting this to True (default) will enable toast notifications that pop up with the song name and requester, setting it to any other value will disable these notifications. This option is not case sensitive
This configuration option allows you to set any character as the listener prefix for commands. To do this, change the value in quotation marks to whatever you desire — it can even be multiple characters!
This configuration option allows you to set any string as the command for queueing a song. Simply change the value in the quotation marks to the desired command.
This configuration option sets the default volume level (0-100) for audio playback.
This configuration option determines which theme the UI will use. Available themes include dark_theme and light_theme by default. Custom themes can be added to the themes folder.
This configuration option determines whether users can request songs with full URLs
This configuration option determines whether users need to be a member of the channel to request a song
This configuration option determines whether users need to send a superchat to request a song
This configuration option is supplementary to REQUIRE_SUPERCHAT and determines the minimum value of the superchat (in USD) that the user must spend to request a song.
This configuration option determines whether only whitelisted video IDs can be requested. When enabled, only videos in the whitelisted_IDs.json file can be queued.
This configuration option determines whether only whitelisted users can request songs. When enabled, only users in the whitelisted_users.json file can queue songs.
This configuration option determines whether finished or skipped songs are automatically removed from the queue.
This configuration option determines whether users who attempt to request banned videos are automatically banned.
This configuration option determines whether desktop notifications are shown when a new song starts playing (only when songs finish naturally, not when skipped).
This file is used to store all banned YouTube video IDs. Each entry should be a JSON object with "id" and "name" fields, for example:
[
{"id": "dQw4w9WgXcQ", "name": "Video Name 1"},
{"id": "jNQXAC9IVRw", "name": "Video Name 2"}
]This file is used to store all banned YouTube user IDs. Each entry should be a JSON object with "id" and "name" fields, for example:
[
{"id": "UCxxxxxxxxxxxxxxxxxxxxx", "name": "Channel Name 1"},
{"id": "UCyyyyyyyyyyyyyyyyyyyyy", "name": "Channel Name 2"}
]To find a channel's ID you can use this site or look in the logs.
This file is used to store all whitelisted YouTube video IDs. Each entry should be a JSON object with "id" and "name" fields, for example:
[
{"id": "dQw4w9WgXcQ", "name": "Video Name 1"},
{"id": "jNQXAC9IVRw", "name": "Video Name 2"}
]This file is used to store all whitelisted YouTube user IDs. Each entry should be a JSON object with "id" and "name" fields, for example:
[
{"id": "UCxxxxxxxxxxxxxxxxxxxxx", "name": "Channel Name 1"},
{"id": "UCyyyyyyyyyyyyyyyyyyyyy", "name": "Channel Name 2"}
]- This program can be run on any Windows PC with no API key or cookie required
- If used, please credit the repository in the description or somewhere in the video
- The program includes built-in update checking and can download installers automatically
- Themes can be customized by editing JSON files in the themes folder
- Queue history is available through the Moderation menu to help manage song requests

