From 80d55a53883e9d6c60d0189bb4f7f044f57d054f Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 31 Oct 2019 07:47:34 +0100 Subject: [PATCH] Fix PKC throwing error if m3u playlist contains resume information --- resources/lib/playlists/db.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/playlists/db.py b/resources/lib/playlists/db.py index 265fddee..6b63c39a 100644 --- a/resources/lib/playlists/db.py +++ b/resources/lib/playlists/db.py @@ -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):