Skip to content

Commit

Permalink
fix: update beet.contrib.livereload to work in 1.19+ (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tracktark authored Aug 14, 2024
1 parent b35237f commit d37faf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beet/contrib/livereload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand All @@ -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,
Expand Down

0 comments on commit d37faf3

Please sign in to comment.