Fix PKC throwing error if m3u playlist contains resume information
This commit is contained in:
parent
2481606cd7
commit
80d55a5388
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue