Save Last Opened Playlist for Bot Reload


#1

On the old forums I requested this but I think it’s been lost in translation.

Should be simple; but would be nice to have. Long story short, I’d like for either the ability to set a playlist name to load on default, or to have the bot load the last-loaded-playlist on reload.

Would be nice to be able to pick what playlist starts up with the bot instead of having to rewrite the default playlist.


#2

You could put an alias for the command to load the playlist to make thing easier. That way you just need to type the word for the command on the console and it will load the playlist.


#3

…And subsequently need to edit the command after every playlist change.

I already aliased !playlist loadpl as !l


#4

Not really. You can alias the whole command e.g: “!playlist loadpl rock” and assign a command as !rock and do the same thing for the rest of the playlists.


#5

You aren’t understanding.

The point is to keep the playlist static through a bot reload or having to load the player again (like refreshing the page). While a page refresh should keep the playlist the same… A bot reload won’t.

Yes, I can alias a command. But that still requires me to alias all 20+ playlists… And then type in said specific command every bot reload. Yes, sometimes I reload the bot 15 times in under an hour. Sometimes I don’t. I’d just like it static.


#6

Yeah I know, I found your topic looking for the same thing. I don’t think this is possible right now without digging through the bot’s codes. Maybe they will release that in a future version.


#8

Now, when you swap playlists and shutdown the bot, it will load the last playlist being used. I tested by swapping the playlist, then shutting down the bot and reloading.

[09-17-2017 @ 20:51:48.999 MDT] [MUTED] @IllusionaryBot, Loaded empty playlist [Rock]
playlist loadpl testimport
[09-17-2017 @ 20:51:57.000 MDT] [MUTED] @IllusionaryBot, Loaded playlist [testimport]
[09-17-2017 @ 20:51:58.347 MDT] [ERROR] [youtubePlayer.js:891] YouTube API Failed Lookup: Playlist [testimport] Index [6] YT ID [xQN7A6Vl1H4] Error [Video Marked Private]
[09-17-2017 @ 20:51:58.437 MDT] [ERROR] [youtubePlayer.js:891] YouTube API Failed Lookup: Playlist [testimport] Index [7] YT ID [iCQ0vDAbF7s] Error [Video Marked Private]

Next boot, note that the same two videos failed, from the testimport playlist:

[09-17-2017 @ 20:52:49.364 MDT] Connected to Twitch Moderation Data Feed
[09-17-2017 @ 20:52:59.275 MDT] [♫] YouTube Player is connected! [♫]
[09-17-2017 @ 20:52:59.528 MDT] [ERROR] [youtubePlayer.js:891] YouTube API Failed Lookup: Playlist [testimport] Index [6] YT ID [xQN7A6Vl1H4] Error [Video Marked Private]
[09-17-2017 @ 20:52:59.618 MDT] [ERROR] [youtubePlayer.js:891] YouTube API Failed Lookup: Playlist [testimport] Index [7] YT ID [iCQ0vDAbF7s] Error [Video Marked Private]
[09-17-2017 @ 20:52:59.631 MDT] [MUTED] [♫] Now Playing [Panda Eyes - KIKO] Requester: DJ IObot
[09-17-2017 @ 20:52:59.632 MDT] [MUTED] [♫] Song requests are enabled! [♫]

https://github.com/PhantomBot/PhantomBot/pull/1676


YouTube Player default Playlist