

To help understand these limitations, you must know how Noatun actually loads plugins.
You should also know that you can't create playlistitems until
napp->playlist() is correct. The below list shows
how a playlist is loaded.
create_plugin is called, and noatun gets the Plugin object.
Plugin::playlist is called, it's not null, so
napp->playlist() is now correct. You have to create
the playlist object before this is called. And there's no guarantee it'l only
be called once.
Plugin::init() is called, in here, you can fill your playlist.
init() is only called once, like a secondary constructor.