added new method for getting playlist by name and type