From 3b2079b594ef430d156162e144e9cf9bc8d11e05 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sat, 4 Jan 2020 02:35:00 -0600 Subject: [PATCH] Cosmetic tweak --- hls_watch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hls_watch/__init__.py b/hls_watch/__init__.py index 3b86061..06ae9f6 100644 --- a/hls_watch/__init__.py +++ b/hls_watch/__init__.py @@ -43,7 +43,7 @@ class Playlist(_Playlist): [e] = [e for e in entries if isinstance(e, TargDur)] targ_dur = e.seconds - is_end = any(isinstance(e, Endlist) for e in entries) + is_end = Endlist() in entries contents = [e for e in entries if isinstance(e, (Segment, Discont))] return class_(media_start, targ_dur, is_end, contents) -- 2.30.2