Merge pull request #1025 from croneter/fix-playlists

Fix PKC throwing error if m3u playlist contains resume information
This commit is contained in:
croneter 2019-10-31 13:38:40 +01:00 committed by GitHub
commit 8e8a42ad12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,11 @@ def _m3u_iterator(text):
lines = iter(text.split('\n'))
for line in lines:
if line.startswith('#EXTINF:'):
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):