Cosmetic tweak
authorJakob Cornell <jakob@jcornell.net>
Sat, 4 Jan 2020 08:35:00 +0000 (02:35 -0600)
committerJakob Cornell <jakob@jcornell.net>
Sat, 4 Jan 2020 08:35:00 +0000 (02:35 -0600)
hls_watch/__init__.py

index 3b86061c84980fe2d3c567cad183ad6d414fdb5d..06ae9f6f6342bb34d8b59afe16f7b2e95ddbaca8 100644 (file)
@@ -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)