class DownloadTV::Configuration

def load_config

def load_config
  source = File.read(@config_path)
  @content = JSON.parse(source, symbolize_names: true)
  @content[:date] = Date.parse(@content[:date]) if @content[:date]
  change_configuration if !@content[:version] || breaking_changes?(@content[:version])
rescue JSON::ParserError
  @content = {}
  change_configuration
  retry
end