to support other tv and refactor code to lib/subtitle