From: Jakob Cornell Date: Sat, 4 Jan 2020 04:43:03 +0000 (-0600) Subject: Clean up imports, fix bug X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=ae4cec6f6a824beae54e05a2a46d7890da76f2a6;p=hls-watch.git Clean up imports, fix bug --- 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):