Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example of using PBL to create a cynical radio station where every 4th song is by Sia or Katy Perry
from pbl import *
gold = Concatenate([ArtistTopTracks('Sia'), ArtistTopTracks('Katy Perry')])
norm = PlaylistSource("Today's Top Hits")
radio = Alternate([norm, norm, norm, Shuffler(gold)])
radio = PlaylistSave(radio, 'cynical radio', 'plamere', max_size=40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment