Skip to content

Commit

Permalink
2.9.040
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed Aug 31, 2024
1 parent 0ab549f commit 7ca190b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
<details><summary>List all subcommands</summary>

$ library
library (v2.9.039; 84 subcommands)
library (v2.9.040; 84 subcommands)

Create database subcommands:
╭─────────────────┬──────────────────────────────────────────╮
Expand Down
4 changes: 2 additions & 2 deletions tests/playback/test_play_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
("--no-subtitles", 1, "test_frame.gif"),
("-w subtitle_count=1", 1, "corrupt.mp4"),
("--fetch-siblings each", 1, "corrupt.mp4"),
("--no-audio", 2, "test.gif"),
("--no-audio", 2, "test_frame.gif"),
("-w audio_count=1", 2, "corrupt.mp4"),
("-d+0 -d-10", 3, "corrupt.mp4"),
("-d=-1", 3, "corrupt.mp4"),
Expand All @@ -90,7 +90,7 @@
("-O reverse_path_path", 5, "https://test/?tags%5B%5D="),
("-O size", 5, "test_frame.gif"),
("-O", 5, "corrupt.mp4"),
("-w 'playhead is NULL'", 5, "corrupt.mp4"),
("-w 'playhead=0'", 5, "corrupt.mp4"),
("-w time_deleted=0", 5, "corrupt.mp4"),
]

Expand Down
2 changes: 1 addition & 1 deletion xklb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from xklb.utils import argparse_utils, iterables
from xklb.utils.log_utils import log

__version__ = "2.9.039"
__version__ = "2.9.040"

progs = {
"Create database subcommands": {
Expand Down
3 changes: 3 additions & 0 deletions xklb/playback/media_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def cadence_adjusted_duration(args, duration):
except IndexError:
return None

if historical_hourly == 0:
return None

return int(duration / historical_hourly * 60 * 60)


Expand Down

0 comments on commit 7ca190b

Please sign in to comment.