Skip to content

Commit

Permalink
fix name of mpv history script console script
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbreckenridge committed Oct 8, 2023
1 parent fc4081f commit 6a7d579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mpv_history_daemon/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path
from typing import List, Any, Dict, NamedTuple

from .events import logger
from .serialize import parse_json_file


Expand Down Expand Up @@ -32,6 +33,9 @@ def merge_files(files: List[Path], mtime_seconds_since: int = 3600) -> MergeResu
else:
since_write = time.time() - f.stat().st_mtime
if since_write < mtime_seconds_since:
logger.info(
f"Skipping {f} because it was modified {since_write} (< {mtime_seconds_since}) seconds ago"
)
continue
event_files.append(f)

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ include =

[options.entry_points]
console_scripts =
mpv_history_daemon = mpv_history_daemon.__main__:cli
mpv-history-daemon = mpv_history_daemon.__main__:cli

[options.extras_require]
optional =
Expand Down

0 comments on commit 6a7d579

Please sign in to comment.