I am trying to implement a playlist reader for a certain playlist format. It works fine when the playlist is loaded from the hard disc. It works when the playlist is loaded from the web using File->Add location... and the URI contains the correct extension. But it does not work when the extension is not part of the URI even though the content type is sent correctly by the server (foobar2000 just inserts a single entry into the playlist, and treats it as an audio file, not as a playlist file).
It seems that the function playlist_loader::is_our_content_type() is not even being called. What am I doing wrong? When the file extension is not present, why isn't foobar checking the content type instead of blindly inserting the entry into playlist as an audio file?
I only have a class derived from playlist_loader in the component and nothing else.
