From ae4cec6f6a824beae54e05a2a46d7890da76f2a6 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Fri, 3 Jan 2020 22:43:03 -0600 Subject: [PATCH] Clean up imports, fix bug --- hls_watch/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hls_watch/__init__.py b/hls_watch/__init__.py index c7981f4..114656e 100644 --- a/hls_watch/__init__.py +++ b/hls_watch/__init__.py @@ -1,5 +1,4 @@ from collections import namedtuple -import contextlib import datetime import itertools import re @@ -227,8 +226,6 @@ class CaptureHandler: self.in_sess = False def update(self, capture): - from functools import partial - if self.sync_tail: new = self.sync_tail.intersect_right(capture.playlist) if new: @@ -278,7 +275,7 @@ class BufferedWriter: def put_entry(self, entry, time = None): if isinstance(entry, Segment): while self.buffer: - self.dest.put_entry(self.buffer.pop(0)) + self.dest.put_entry(self.buffer.pop(0), time) self.flushed = True self.dest.put_entry(entry, time) elif self.flushed and isinstance(entry, Endlist): -- 2.30.2