Ticket #29 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

unhandled exception in transcode.video_info()

Reported by: anonymous Assigned to: somebody
Priority: major Component: Core
Keywords: Cc:

Description

If the duration of the file can't be acquired in video_info(), an unhandled exception occurs. There needs to be a sanity check of 'd' before it's used to compute the milliseconds.

    durre = re.compile(r'.*Duration: (.{2}):(.{2}):(.{2})\.(.),')
    d = durre.search(output)

    if d:
        millisecs = ((int(d.group(1))*3600) + (int(d.group(2))*60) + int(d.group(3)))*1000 + (int(d.group(4))*100)
    else:
        info_cache[inFile] = (mtime, (None, None, None, None, None))
        debug_write(['video_info: failed at duration\n'])
        return None, None, None, None, None    

Attachments

Change History

11/15/07 21:25:21 changed by armooo

  • status changed from new to closed.
  • resolution set to fixed.

(In [208]) Patch from nick@cpanel.net

millisecs not found files with space in the name

fixes #28 fixes #29


Add/Change #29 (unhandled exception in transcode.video_info())




Action