the URLs in my site are in the form of www.<domain>/resource?name=picture.jpg
now, shadowbox will not recognize that this url is for a jpg resource because the getPlayer method strips everything after the '?' character and only then looks for a match.
I would say that player detection should be done also via content-type header in the response and not like it is now (pre-determined). there are many sites with URL mappings where the URL does not "disclose" the content-type.