Skip to content

Commit fb2f3d0

Browse files
committed
shrink VOB files more often
1 parent 5d002d0 commit fb2f3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/mediafiles/process_media.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def parse_args() -> argparse.Namespace:
6363
parser.add_argument(
6464
"--source-video-bitrate",
6565
type=nums.human_to_bits,
66-
default="1400kbps",
66+
default="1500kbps",
6767
help="Used to estimate duration when files are inside of archives or invalid",
6868
)
6969

@@ -239,7 +239,7 @@ def check_shrink(args, m) -> list:
239239
log.warning("Deleting unplayable (ffprobe): %s", m["path"])
240240
Path(m["path"]).unlink(missing_ok=True)
241241
return []
242-
if m["duration"] is None or not m["duration"] > 0:
242+
if m["duration"] is None or not m["duration"] > 0 or m["ext"] in consts.SKIP_MEDIA_CHECK:
243243
log.debug("[%s]: Invalid duration", m["path"])
244244
m["duration"] = m["size"] / args.source_video_bitrate * 8
245245
is_invalid = True

0 commit comments

Comments
 (0)