From: Jakob Cornell Date: Sat, 4 Jan 2020 08:35:00 +0000 (-0600) Subject: Cosmetic tweak X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=3b2079b594ef430d156162e144e9cf9bc8d11e05;p=hls-watch.git Cosmetic tweak --- 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)