Simplify url_basename

Use urlparse from the standard library.
Merge pull request #1997 from rg3/simplify-url_basename

Simplify url_basename
[utils] Remove duplicated line

This line was added by accident in 42393ce234c651aaae244e1546e1803101765acc
[generic] Support application/ogg for direct links

Also remove some debugging code.
[smotri] Fix duration field name
Merge pull request #2006 from dstftw/master

[smotri] Fix duration field name