Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 public function search(Request $request)
 {
     $query = $request['query'];
     return TheaterSubtitleManager::searchMovie($query);
 }