Add a function to get the current playlist item in the lua interface.