'use strict';

/* This was necessary to priorize Star Wars: The Clone Wars (2008) over Star Wars: Clone Wars (2003).
  I left this object because it could be useful for other movies/shows */
var fullTitles = {
  'Star Wars: The Clone Wars': '"Star Wars: The Clone Wars"',
  'The Office (U.S.)': 'The Office (US)'
}

function Item(options) {
  this.scrubber = options.scrubber;
  this.title = fullTitles[options.title] || options.title;
  this.type = options.type;

  if (this.type === 'show') {
    this.epTitle = options.epTitle;
    this.season = options.season;
    this.episode = options.episode;
  }
}

Item.prototype.getScrubber = function() {
  return parseFloat(parseFloat(this.scrubber.style.width).toFixed(2));
};

module.exports = Item;
'use strict';

/* This was necessary to priorize Star Wars: The Clone Wars (2008) over Star Wars: Clone Wars (2003).
  I left this object because it could be useful for other movies/shows */
var fullTitles = {
  'Star Wars: The Clone Wars': '"Star Wars: The Clone Wars"',
  'The Office (U.S.)': 'The Office (US)',
  'The Blind Side': '"The Blind Side"',
  'The Avengers': '"The Avengers"'
}

function Item(options) {
  this.scrubber = options.scrubber;
  this.title = fullTitles[options.title] || options.title;
  this.type = options.type;

  if (this.type === 'show') {
    this.epTitle = options.epTitle;
    this.season = options.season;
    this.episode = options.episode;
  }
}

Item.prototype.getScrubber = function() {
  return parseFloat(parseFloat(this.scrubber.style.width).toFixed(2));
};

module.exports = Item;

Add more fullTitles for Item - The Blind Side was returing Blind Side - The Avengers was returning Avenged
Add more fullTitles for Item
- The Blind Side was returing Blind Side
- The Avengers was returning Avenged
