def srt2txt(path):
    out_path = os.path.join(txt_path, (path.split('.')[0] + '.txt'))
    with open(path, 'r+') as f:
        with open(out_path, 'w+') as out:
            for (index, lines) in enumerate(f.readlines()):
                if ((index % 5) == 2):
                    out.write((lines.split('>')[1].split('<')[0] + '\n'))
def srt2txt(path):
    out_path = os.path.join(txt_path, (path.split('.')[0] + '.txt'))
    with open(path, 'r+') as f:
        with open(out_path, 'w+') as out:
            for (index, lines) in enumerate(f.readlines()):
                if ((index % 5) == 2):
                    out.write((lines.split('>')[1].split('<')[0] + '\n'))