Skip to content

Commit

Permalink
regression: media-check full-scan
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed May 26, 2024
1 parent fb22e0c commit 42c4791
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xklb/mediafiles/media_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def decode(scan):
return fail_count / len(scans)


def decode_full_scan(path, audio_scan=False, frames="frames", threads=5):
def decode_full_scan(path, audio_scan=False, frames="frames", threads=None):
ffprobe = processes.FFProbe(path)
metadata_duration = ffprobe.duration or 0

Expand Down Expand Up @@ -99,7 +99,7 @@ def decode_full_scan(path, audio_scan=False, frames="frames", threads=5):
"-of",
"json",
"-threads",
str(threads),
str(threads or 5),
"-v",
"0",
path,
Expand Down Expand Up @@ -169,7 +169,7 @@ def media_check() -> None:
gap=args.gap,
full_scan=args.full_scan,
audio_scan=args.audio_scan,
threads=args.threads,
threads=args.threads or 5,
): path
for path in paths
if Path(path).suffix.lower() not in consts.SKIP_MEDIA_CHECK
Expand Down

0 comments on commit 42c4791

Please sign in to comment.