Since these lines are a duplicate of the ones on line 509, I think it'd be preferable to extract both hardcoded lists into a function that returns which extensions are supported, making for less code duplication.