if line.startswith('#EXTINF:'):
# pull length and title from #EXTINF line
length,title=line.split('#EXTINF:')[1].split(',',1)
if line.startswith('#EXTINF:'):
# pull length and title from #EXTINF line
length,title=line.split('#EXTINF:')[1].split(',',1)