{"action":"created","issue":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/6753","labels_url":"https://api.github.com/repos/xbmc/xbmc/issues/6753/labels{/name}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/6753/comments","events_url":"https://api.github.com/repos/xbmc/xbmc/issues/6753/events","html_url":"https://github.com/xbmc/xbmc/pull/6753","id":62468765,"number":6753,"title":"Fix one case of extra calls to CCurlFile::GetMimeType","user":{"login":"Paxxi","id":874927,"avatar_url":"https://avatars.githubusercontent.com/u/874927?v=3","gravatar_id":"","url":"https://api.github.com/users/Paxxi","html_url":"https://github.com/Paxxi","followers_url":"https://api.github.com/users/Paxxi/followers","following_url":"https://api.github.com/users/Paxxi/following{/other_user}","gists_url":"https://api.github.com/users/Paxxi/gists{/gist_id}","starred_url":"https://api.github.com/users/Paxxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paxxi/subscriptions","organizations_url":"https://api.github.com/users/Paxxi/orgs","repos_url":"https://api.github.com/users/Paxxi/repos","events_url":"https://api.github.com/users/Paxxi/events{/privacy}","received_events_url":"https://api.github.com/users/Paxxi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xbmc/xbmc/labels/Fix","name":"Fix","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/xbmc/xbmc/milestones/58","html_url":"https://github.com/xbmc/xbmc/milestones/I*******%2015.0-alpha2","labels_url":"https://api.github.com/repos/xbmc/xbmc/milestones/58/labels","id":946522,"number":58,"title":"I******* 15.0-alpha2","description":"","creator":{"login":"Montellese","id":75864,"avatar_url":"https://avatars.githubusercontent.com/u/75864?v=3","gravatar_id":"","url":"https://api.github.com/users/Montellese","html_url":"https://github.com/Montellese","followers_url":"https://api.github.com/users/Montellese/followers","following_url":"https://api.github.com/users/Montellese/following{/other_user}","gists_url":"https://api.github.com/users/Montellese/gists{/gist_id}","starred_url":"https://api.github.com/users/Montellese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Montellese/subscriptions","organizations_url":"https://api.github.com/users/Montellese/orgs","repos_url":"https://api.github.com/users/Montellese/repos","events_url":"https://api.github.com/users/Montellese/events{/privacy}","received_events_url":"https://api.github.com/users/Montellese/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":166,"state":"open","created_at":"2015-01-22T07:34:16Z","updated_at":"2015-03-20T12:30:42Z","due_on":"2015-03-30T22:00:00Z","closed_at":null},"comments":27,"created_at":"2015-03-17T17:46:33Z","updated_at":"2015-03-20T15:54:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/6753","html_url":"https://github.com/xbmc/xbmc/pull/6753","diff_url":"https://github.com/xbmc/xbmc/pull/6753.diff","patch_url":"https://github.com/xbmc/xbmc/pull/6753.patch"},"body":"Actually use the mime type that is passed in.\r\nDon't blindly refresh mime type unless it's missing\r\n\r\n@stefansaraev @wsnipex  can you verify?"},"comment":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/84054631","html_url":"https://github.com/xbmc/xbmc/pull/6753#issuecomment-84054631","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/6753","id":84054631,"user":{"login":"tamland","id":148836,"avatar_url":"https://avatars.githubusercontent.com/u/148836?v=3","gravatar_id":"","url":"https://api.github.com/users/tamland","html_url":"https://github.com/tamland","followers_url":"https://api.github.com/users/tamland/followers","following_url":"https://api.github.com/users/tamland/following{/other_user}","gists_url":"https://api.github.com/users/tamland/gists{/gist_id}","starred_url":"https://api.github.com/users/tamland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamland/subscriptions","organizations_url":"https://api.github.com/users/tamland/orgs","repos_url":"https://api.github.com/users/tamland/repos","events_url":"https://api.github.com/users/tamland/events{/privacy}","received_events_url":"https://api.github.com/users/tamland/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T15:54:41Z","updated_at":"2015-03-20T15:54:41Z","body":"I haven't followed this entire discussion, but this fix seems good too me. I intended that `FillInMimeType` line to only do so when all else fail. In addition to what's mentioned here, another use for the setMimeType api is to explicitly *avoid* the expensive stat call altogether. It even says so in the docs."}}