lib/projection.js
function formatInfos(infos) {
  var cursor = 0,
    duration = null,
    rating   = null,
    genre    = null;

  if (infos[cursor].match(/(1|2|hr|min)/)){
    duration = infos[cursor].trim();
    cursor++;
  }

  if (infos[cursor].match(/(G|\+|13|16|18)/)){
    rating = infos[cursor].trim();
    cursor++;
  }

  if (infos[cursor].match(/(^\D*$)/)){
    genre = infos[cursor].trim();
    cursor++;
  }

  return {
    duration: duration,
    rating: rating,
    genre: genre
  };
}
function formatInfos(infos) {
  var cursor = 0,
    duration = null,
    rating   = null,
    genre    = null;

  if (infos[cursor].match(/(1|2|hr|min)/)){
    duration = infos[cursor].trim();
    cursor++;
  }

  if (infos[cursor].match(/(G|\+|13|16|18)/)){
    rating = infos[cursor].trim();
    cursor++;
  }

  if (infos[cursor].match(/(^\D*$)/)){
    genre = infos[cursor].trim();
    cursor++;
  }

  return {
    duration: duration,
    rating: rating,
    genre: genre
  };
}
Private