Merge pull request #1025 from croneter/fix-playlists
Fix PKC throwing error if m3u playlist contains resume information
This commit is contained in:
commit
8e8a42ad12
1 changed files with 5 additions and 1 deletions
|
@ -64,7 +64,11 @@ def _m3u_iterator(text):
|
||||||
lines = iter(text.split('\n'))
|
lines = iter(text.split('\n'))
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if line.startswith('#EXTINF:'):
|
if line.startswith('#EXTINF:'):
|
||||||
|
next_line = next(lines).strip()
|
||||||
|
if next_line.startswith('#EXT-KX-OFFSET:'):
|
||||||
yield next(lines).strip()
|
yield next(lines).strip()
|
||||||
|
else:
|
||||||
|
yield next_line
|
||||||
|
|
||||||
|
|
||||||
def m3u_to_plex_ids(playlist):
|
def m3u_to_plex_ids(playlist):
|
||||||
|
|
Loading…
Reference in a new issue