Direct URLs not recognized if file extension is capitalized

Title says it all, should be as simple as just converting the link to lower case before checking if it’s a direct media link.