package com.itstherules.mediacentre.controller;
import java.io.IOException;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.itstherules.mediacentre.Extension;
import com.itstherules.stream.model.ItemsModel;
public class MovieController extends BaseController {
@Override
public void list(Map<String, Object> parameters, HttpServletResponse response) throws IOException {
ItemsModel itemsModel = new ItemsModel("movies", (String) parameters.get("directory"), Extension.flv.toString());
parameters.put("items", itemsModel.asList());
merge("movies/list.freemarker", parameters, response.getWriter());
}
@Override
public void show(Map<String, Object> parameters, HttpServletResponse response) throws IOException {
merge("movies/show.freemarker", parameters, response.getWriter());
}
}