class TvShowParser extends ContentParser<TvShow> {

	@Override
	public TvShow parse(String input) {
		Matcher matcher = mainPattern.matcher(input);
		if(matcher.matches()){
			String name = getName(matcher.group(1));
			Integer season = Integer.valueOf(matcher.group(2));
			Integer episode = Integer.valueOf(matcher.group(3));

			Quality qualityEnum = Quality.STANDARD;
			matcher = qualityPattern.matcher(input);
			if(matcher.find()){
			    String quality = matcher.group();
			    if(quality.equals(QUALITY_HD))
				    qualityEnum = Quality.HD;
			    else if(quality.equals(QUALITY_FULLHD))
				    qualityEnum = Quality.FULLHD;
			}

			return new TvShow(name, season, episode, qualityEnum);
		} else {
			return null;
		}
	}

}