Examples of MovieInfo


Examples of org.afekete.moviedatabasecreator.dto.MovieInfo

    String path = getPath(line);
   
    // Process directory line or video file line
    if (!StringOperations.hasExtension(line) || StringOperations.hasVideoExtension(line)) {
      MovieInfo info = getInfo(line);
      if (info == null) return;
      boolean exists = false;
      for (MovieInfo r : result) {
        if (r.path.equals(path)) {
          r.raise(info);
View Full Code Here

Examples of org.afekete.moviedatabasecreator.dto.MovieInfo

      String[] splittedFileName = fileName.split(fileSeparator);
      if (splittedFileName == null || splittedFileName.length < 1) return null;
     
      String fileNameSLastTag = splittedFileName[splittedFileName.length - 1];
     
      MovieInfo info = NameParser.getFileInfo(fileNameSLastTag);
      boolean isFile = StringOperations.hasExtension(line);
      if (isFile) {
        if (info.format == null) info.format = new String();
        String videoExtension = StringOperations.getVideoExtension(line);
        if (videoExtension != null) {
View Full Code Here

Examples of org.afekete.moviedatabasecreator.dto.MovieInfo

   *
   * @param pathSLastTag file/folder name
   * @return movie information
   */
  public static MovieInfo getFileInfo(String pathSLastTag) {
    MovieInfo transientInfo = getTransientInfo(pathSLastTag);
    MovieInfo staticInfo = getStaticInfo(pathSLastTag);
    MovieInfo fileNameInfo = staticInfo.raise(transientInfo);
    return fileNameInfo;
  }
View Full Code Here

Examples of org.afekete.moviedatabasecreator.dto.MovieInfo

   *  
   * @param pathSLastTag string with release name, date, language, releaser information
   * @return MovieInfo object
   */
  private static MovieInfo getStaticInfo(String pathSLastTag) {
    MovieInfo info = new MovieInfo();
    // The releaser is usually the last part of the filename preceding only the file
    // extension and maybe some volume identifier
    // Also it always starts after the last dash
    if (info.releaser == null) {
      String truncated = StringOperations.truncExtension(pathSLastTag);
View Full Code Here

Examples of org.afekete.moviedatabasecreator.dto.MovieInfo

   */
  private static MovieInfo getTransientInfo(String pathSLastTag) {
    List<List<String>> versions = getSplittedFilenameVersions(pathSLastTag);
    List<MovieInfo> versionInfos = new ArrayList<MovieInfo>();
    for (List<String> version : versions) {
      MovieInfo info = new MovieInfo();
      boolean nameFilled = false;
      for (String part : version) {
        // Name is conventionally consists of the first strings in the filename
        // and it ends with the date or language -> once the date or language or format
        // has been reached, there's no need to check if a part is part of the name
View Full Code Here

Examples of org.afekete.moviedatabasecreator.dto.MovieInfo

   *
   * @param versionInfos list of MovieInfo objects
   * @return a higher value MovieInfo object
   */
  private static MovieInfo synergize(List<MovieInfo> versionInfos) {
    MovieInfo maximumExpenseInfo = null;
    for (MovieInfo info : versionInfos) {
      int expense = info.getExpense();
      if (maximumExpenseInfo == null || expense > maximumExpenseInfo.getExpense()) maximumExpenseInfo = info;
    }
    for (MovieInfo info : versionInfos) {
      maximumExpenseInfo.raise(info);
    }
    return maximumExpenseInfo;
  }
View Full Code Here

Examples of org.afekete.moviedatabasecreator.dto.MovieInfo

    if (s != null) params.put("sorted", ResourceManager.getResourceValue(s.designation()));
    params.put("moviesNum", result.size());
    result = Sorter.sort(result, s);
    List<HashMap<String, Object>> data = new ArrayList<HashMap<String, Object>>();
    for (int i = 0; i < result.size(); i++) {
      MovieInfo info = result.get(i);
      HashMap<String, Object> map = new HashMap<String, Object>();
      String plot = null;
      String namePrimary = null;
      String nameSecondary = null;
      if (ResourceManager.getLocale().equals(ResourceManager.LOCALE_HU)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.