{"action":"created","issue":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/876","labels_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/876/labels{/name}","comments_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/876/comments","events_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/876/events","html_url":"https://github.com/ankidroid/Anki-Android/pull/876","id":91810923,"number":876,"title":"Play more files as video","user":{"login":"ospalh","id":1690429,"avatar_url":"https://avatars.githubusercontent.com/u/1690429?v=3","gravatar_id":"","url":"https://api.github.com/users/ospalh","html_url":"https://github.com/ospalh","followers_url":"https://api.github.com/users/ospalh/followers","following_url":"https://api.github.com/users/ospalh/following{/other_user}","gists_url":"https://api.github.com/users/ospalh/gists{/gist_id}","starred_url":"https://api.github.com/users/ospalh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ospalh/subscriptions","organizations_url":"https://api.github.com/users/ospalh/orgs","repos_url":"https://api.github.com/users/ospalh/repos","events_url":"https://api.github.com/users/ospalh/events{/privacy}","received_events_url":"https://api.github.com/users/ospalh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-29T14:01:51Z","updated_at":"2015-07-02T05:12:57Z","closed_at":"2015-06-29T14:13:21Z","pull_request":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/876","html_url":"https://github.com/ankidroid/Anki-Android/pull/876","diff_url":"https://github.com/ankidroid/Anki-Android/pull/876.diff","patch_url":"https://github.com/ankidroid/Anki-Android/pull/876.patch"},"body":"Extra test to determine whether [sonud:NN] is a video: Ask  URLConnection to guess the type.\r\n\r\nSome systems can play e.g. avi videos, some can’t. This [asks](https://developer.android.com/reference/java/net/URLConnection.html#guessContentTypeFromName%28java.lang.String%29) `URLConnection` if that class thinks a [sound:NN] file is a video along with the old test.\r\n\r\nTested with Android 4.2 (plays .avi as videos with this change) and Android 2.2. (Doesn’t know about AVI. Can’t play (some) AVIs neither as video nor as sound, same as without this change.)\r\n\r\nThis is in response to [issue 2669](https://code.google.com/p/ankidroid/issues/detail?id=2669)."},"comment":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/comments/117908837","html_url":"https://github.com/ankidroid/Anki-Android/pull/876#issuecomment-117908837","issue_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/876","id":117908837,"user":{"login":"timrae","id":2818274,"avatar_url":"https://avatars.githubusercontent.com/u/2818274?v=3","gravatar_id":"","url":"https://api.github.com/users/timrae","html_url":"https://github.com/timrae","followers_url":"https://api.github.com/users/timrae/followers","following_url":"https://api.github.com/users/timrae/following{/other_user}","gists_url":"https://api.github.com/users/timrae/gists{/gist_id}","starred_url":"https://api.github.com/users/timrae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timrae/subscriptions","organizations_url":"https://api.github.com/users/timrae/orgs","repos_url":"https://api.github.com/users/timrae/repos","events_url":"https://api.github.com/users/timrae/events{/privacy}","received_events_url":"https://api.github.com/users/timrae/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T05:12:56Z","updated_at":"2015-07-02T05:12:56Z","body":"I don't remember if it's allowed in the filename or not, but I guess it's not allowed to appear before a `/` in a URL. That method is presumably only looking at the extension so maybe we could just give it everything after the last `.` instead? I don't like the try/catch approach much"}}