/** * return list of subtitle names from given * languages. If no language given, all * available subnames will be return * * @param int $imdbId * @param $lanuguage the language * @return Response */ public function show(Request $request, $imdbId) { $languages = []; if ($request->has('lang')) { $languages = explode(',', $request->input('lang')); } $resp = TSM::getSubtitle($imdbId, $languages); return $this->respond($resp); }
public function search(Request $request) { $query = $request['query']; return TheaterSubtitleManager::searchMovie($query); }