#!/usr/bin/env python3
# encoding: utf-8
# 
# © 2017 Benjamin Mintz
# https://bmintz.mit-license.org/@2017
#

"""
config.py: Config objects store video 
"""


class TechnicalMemeConfig:
	def __init__(self, video_filename, filename):
		self.video_filename = video_filename
		self.filename = filename
		
		self.parse_config()
	
	def parse_config(self):
		with open(self.filename) as config_file:
			# get first line and save as speed multiplier
			self.multiplier = float(next(config_file).strip())
			self.timestamps = [float(line.strip()) for line in config_file]
			
			# if the timestamps are not in order,
			# the speedups will be applied in the wrong order
			self.timestamps.sort()

@@ -203,73 +203,16 @@
 lf, 
-video_filename, filename):%0A%09%09self.video_filename = video_
 filename
 %0A%09%09s
@@ -207,16 +207,18 @@
 filename
+):
 %0A%09%09self.

remove video filename from TechnicalMemeConfig since configs are not bound to a video file