5.4 fix url regex for only accept media
8. Fix indentation
Merge pull request #103 from nicoman/master

5.4 fix url regex for only accept media