flv_size / mp4_size comparison is a little too sensitive

Issue #40 resolved
John Grieve created an issue

When downloading short episodes that compress well the code:

common.py

if abs(flv_size - mp4_size) < 0.1 * flv_size:
            os.unlink(infile)
            return True
        else:
            logging.error("The size of %s is suspicious, did the remux fail?", outfile)
            return False

is just a little bit too sensitive. Chaning 0.1 to 0.2 fixes the issue.

the ABC's "Hey Duggee S01E08" is an example.

Comments (3)

  1. Log in to comment