playlist api request
variable scope issue