                             
                         case "convert":
                             if let percent = Int(attributes["percent"] as! String) {
-                                observer.sendNext(ListenToYouTubeStatus.converting(percent))
+                                observer.send(value: ListenToYouTubeStatus.converting(percent))
                             }
                             
                         case "download":
                             if let percent = Int(attributes["percent"] as! String) {
-                                observer.sendNext(ListenToYouTubeStatus.downloading(percent))
+                                observer.send(value: ListenToYouTubeStatus.downloading(percent))
                             }
                             
                         case "finished":

                    })
                    
                case .failure(let error):
                    observer.sendFailed(error as NSError)
                }
            }
        }

                            
                            if let streamURL = URL(string: json?["downloadurl"] as! String) {
                                let result = ListenToYouTubeResult(streamURL: streamURL, title: videoName)
                                observer.send(value: ListenToYouTubeStatus.success(result))
                                observer.sendCompleted()
                            } else {
                                observer.send(error: NSError(domain: "StreamURLError", code: 0, userInfo: nil))
                            }
                            
                            return
