From d37faf3b2fdf2540c9a65f1766247fe68bdcee63 Mon Sep 17 00:00:00 2001 From: Tracktark <41553228+Tracktark@users.noreply.github.com> Date: Wed, 14 Aug 2024 18:36:47 +0200 Subject: [PATCH] fix: update beet.contrib.livereload to work in 1.19+ (#447) --- beet/contrib/livereload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beet/contrib/livereload.py b/beet/contrib/livereload.py index 7e1a8d26..13304935 100644 --- a/beet/contrib/livereload.py +++ b/beet/contrib/livereload.py @@ -119,7 +119,7 @@ def livereload_server(connection: Connection[Tuple[Optional[str], Path], None]): @log_watcher.tail(log_file_path) def _(args: JsonDict): - if LIVERELOAD_REGEX.match(args["message"]) and livereload_path: + if LIVERELOAD_REGEX.search(args["message"]) and livereload_path: remove_path(livereload_path) @@ -138,7 +138,7 @@ def __init__(self): def tail(self, path: FileSystemPath) -> Callable[[LogCallback], None]: ... @overload - def tail(self, path: FileSystemPath, callback: LogCallback): ... + def tail(self, path: FileSystemPath, callback: LogCallback) -> None: ... def tail( self,