Fix PKC throwing error if m3u playlist contains resume information

This commit is contained in:
croneter 2019-10-31 07:47:34 +01:00
parent 2481606cd7
commit 80d55a5388

View file

@ -64,7 +64,11 @@ def _m3u_iterator(text):
lines = iter(text.split('\n'))
for line in lines:
if line.startswith('#EXTINF:'):
yield next(lines).strip()
next_line = next(lines).strip()
if next_line.startswith('#EXT-KX-OFFSET:'):
yield next(lines).strip()
else:
yield next_line
def m3u_to_plex_ids(playlist):