Skip to content

Commit 4d3bd88

Browse files
committed
3.0.031
1 parent 304bb29 commit 4d3bd88

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
9999
<details><summary>List all subcommands</summary>
100100

101101
$ library
102-
library (v3.0.030; 99 subcommands)
102+
library (v3.0.031; 99 subcommands)
103103

104104
Create database subcommands:
105105
╭─────────────────┬──────────────────────────────────────────╮

xklb/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from xklb.utils import argparse_utils, iterables
66
from xklb.utils.log_utils import log
77

8-
__version__ = "3.0.030"
8+
__version__ = "3.0.031"
99

1010
progs = {
1111
"Create database subcommands": {

xklb/mediafiles/process_ffmpeg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ def process_path(args, path, include_timecode=False, subtitle_streams_unsupporte
325325
print(shlex.join(command))
326326
return path
327327

328+
is_file_error = False
328329
try:
329330
processes.cmd(*command)
330331
except subprocess.CalledProcessError as e:
@@ -383,6 +384,8 @@ def process_path(args, path, include_timecode=False, subtitle_streams_unsupporte
383384
transcode_invalid = True
384385
elif args.delete_unplayable and is_file_error:
385386
pass # if the original file is broken but the transcode is somewhat valid, don't compare duration
387+
elif path_utils.ext(path).lower() in consts.SKIP_MEDIA_CHECK:
388+
pass # duration metadata for these source formats is usually incorrect
386389
elif nums.percentage_difference(probe.duration, transcode_probe.duration) > 5.0:
387390
transcode_invalid = True
388391
if transcode_invalid:

xklb/utils/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def reddit_frequency(frequency) -> str:
190190
"|dif|divx|cdata|eac3|paf|fap|flm|flv|fsb|fwse|g722|722|tco|rco|heics"
191191
"|g723_1|g729|genh|gsm|h261|h26l|h264|264|avc|mts|m2ts|hca|hevc|h265|265|idf"
192192
"|ifv|cgi|ipu|sf|ircam|ivr|kux|669|abc|amf|ams|dbm|dmf|dsm|far|it|mdl"
193-
"|med|mod|mt2|mtm|okt|psm|ptm|s3m|stm|ult|umx|xm|itgz|itr|itz|iso|img"
193+
"|med|mod|mt2|mtm|okt|psm|ptm|s3m|stm|ult|umx|xm|itgz|itr|itz"
194194
"|mdgz|mdr|mdz|s3gz|s3r|s3z|xmgz|xmr|xmz|669|amf|ams|dbm|digi|dmf"
195195
"|dsm|dtm|far|gdm|ice|imf|it|j2b|m15|mdl|med|mmcmp|mms|mo3|mod|mptm"
196196
"|mt2|mtm|nst|okt|ogm|ogv|plm|ppm|psm|pt36|ptm|s3m|sfx|sfx2|st26|stk|stm"

xklb/utils/devices.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def confirm(*args, **kwargs) -> bool:
5151
if consts.PYTEST_RUNNING:
5252
raise InteractivePrompt
5353

54+
sys.stdout.flush()
5455
clear_input()
5556
return Confirm.ask(*args, **kwargs, default=False)
5657

0 commit comments

Comments
 (0)