public function scrapeYouTubePage($youtubeId, &$data) { $recording = Recording::findOrFail($youtubeId); $data['p1_youtube_id'] = $recording->youtube_id; $data['title'] = array_get($recording->youtube_meta, 'title'); $data['description'] = array_get($recording->youtube_meta, 'description'); }
public function delete(Request $request, $rid) { //csrf protection keep from unauthorized delete //no need to check for server up. User will not see recording in the first place $user = Auth::user(); try { $recording = Recording::findOrFail($rid); if ($recording->owner != $user->id) { return redirect()->back()->with('message', trans('room.show.recording.delete.unauthorized')); } $bbb = new BigBlueButton($recording->bbb_server_id); $bbb->deleteRecordingsWithXmlResponseArray(array('recordId' => $recording->rid)); } catch (Exception $ex) { return Response::json(array('status' => $ex->getMessage())); } return redirect()->back()->with('message', trans('room.show.recording.deleted')); }