Song Queue Playlist Information - AnkhHeart/Streamlabs-Chatbot-Python-Boilerplate GitHub Wiki

Song Object

Variable Usage
Title obj.Title
RequestedBy obj.RequestedBy
RequestedByName obj.RequestedByName
ID obj.ID
URL obj.URL

Retrieve the next X amount of songs in the queue

Function

List<Song> GetSongQueue(int max)

Use in Python

songs = Parent.GetSongQueue(10)
for obj in songs:
     Parent.Log(ScriptName,obj.Title)

Retrieve the next X amount of songs in the playlist

Function

List<Song> GetSongPlaylist(int max)

Use in Python

songs = Parent.GetSongPlaylist(10)
for obj in songs:
     Parent.Log(ScriptName,obj.Title)

Get the Current song that's playing

Function

KeyValuePair<string,string> GetNowPlaying()

Use in Python

song = Parent.GetNowPlaying()
Parent.Log(ScriptName,"Title: " + song.Key)
Parent.Log(ScriptName,"Requested By: " + song.Value)
⚠️ **GitHub.com Fallback** ⚠️