Skip to content

Commit

Permalink
2.9.066
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed Oct 15, 2024
1 parent 5774bae commit 3d4ec92
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
16 changes: 15 additions & 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.065; 87 subcommands)
library (v2.9.066; 88 subcommands)

Create database subcommands:
╭─────────────────┬──────────────────────────────────────────╮
Expand Down Expand Up @@ -212,6 +212,8 @@ To stop playing press Ctrl+C in either the terminal or mpv
╭────────────────┬───────────────────────────────────────────────────────╮
│ media-check │ Check video and audio files for corruption via ffmpeg │
├────────────────┼───────────────────────────────────────────────────────┤
│ process-media │ Estimate and execute potential disk space savings │
├────────────────┼───────────────────────────────────────────────────────┤
│ process-ffmpeg │ Shrink video/audio to AV1/Opus format (.mkv, .mka) │
├────────────────┼───────────────────────────────────────────────────────┤
│ process-image │ Shrink images to AV1 image format (.avif) │
Expand Down Expand Up @@ -1922,6 +1924,18 @@ BTW, for some cols like time_deleted you'll need to specify a where clause so th
[ 91.0 .. 100.0] [141] ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎


</details>

###### process-media

<details><summary>Estimate and execute potential disk space savings</summary>

$ library process-media -h
usage: library process-media DATABASE

Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer


</details>

###### process-ffmpeg
Expand Down
6 changes: 3 additions & 3 deletions tests/createdb/test_tube_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def test_tubeupdate(play_mocked):
lb(["tube-update", tube_db, "--extractor-config", "TEST2=4 TEST3=2", "--force"])
out = play_mocked.call_args[0][2]
assert out is not None
assert out["TEST1"] == "1"
assert out["TEST2"] == "4"
assert out["TEST3"] == "2"
assert out["TEST1"] == 1
assert out["TEST2"] == 4
assert out["TEST3"] == 2
2 changes: 1 addition & 1 deletion tests/mediafiles/test_process_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ def test_shrink(temp_db, capsys):
with pytest.raises(devices.InteractivePrompt):
lb(["shrink", db1, "-s", "test.mp4"])
captured = capsys.readouterr().out
assert "Video mp4" in captured.replace("\n", "")
assert "Video: mp4" in captured.replace("\n", "")
assert len(captured) > 150
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.065"
__version__ = "2.9.066"

progs = {
"Create database subcommands": {
Expand Down

0 comments on commit 3d4ec92

Please sign in to comment.