         
         operation.completionBlock = { [weak self] () -> Void in
             
-            dispatch_async(dispatch_get_main_queue(), { [weak self] () -> Void in
+            DispatchQueue.main.async(execute: { [weak self] () -> Void in
                 
                 guard let strongSelf = self else
                 {
                     return
                 }
                 
-                if operation.cancelled == true
+                if operation.isCancelled == true
                 {
                     return
                 }

        }
        else
        {
            if let video = self.uploadTicket?.video, let viewPrivacy = video.privacy?.view where viewPrivacy != VideoSettingsViewController.PreUploadViewPrivacy
            {
                NSNotificationCenter.defaultCenter().postNotificationName(self.dynamicType.UploadInitiatedNotification, object: video)
                
                self.dismissViewControllerAnimated(true, completion: nil)
            }
            else
            {

     
        let operation = self.operation as! ExportQuotaCreateOperation
        
        if operation.state == .executing
        {
            operation.videoSettings = self.videoSettings

