{"action":"created","issue":{"url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/143","repository_url":"https://api.github.com/repos/brianwernick/ExoMedia","labels_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/143/comments","events_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/143/events","html_url":"https://github.com/brianwernick/ExoMedia/issues/143","id":141181501,"number":143,"title":"MediaSourceType wrong validation","user":{"login":"TonyTangAndroid","id":8612724,"avatar_url":"https://avatars.githubusercontent.com/u/8612724?v=3","gravatar_id":"","url":"https://api.github.com/users/TonyTangAndroid","html_url":"https://github.com/TonyTangAndroid","followers_url":"https://api.github.com/users/TonyTangAndroid/followers","following_url":"https://api.github.com/users/TonyTangAndroid/following{/other_user}","gists_url":"https://api.github.com/users/TonyTangAndroid/gists{/gist_id}","starred_url":"https://api.github.com/users/TonyTangAndroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TonyTangAndroid/subscriptions","organizations_url":"https://api.github.com/users/TonyTangAndroid/orgs","repos_url":"https://api.github.com/users/TonyTangAndroid/repos","events_url":"https://api.github.com/users/TonyTangAndroid/events{/privacy}","received_events_url":"https://api.github.com/users/TonyTangAndroid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T06:01:21Z","updated_at":"2016-03-16T14:46:31Z","closed_at":null,"body":"- [ ] I have verified there are no duplicate active or recent bugs, questions, or requests\r\n\r\n###### Include the following:\r\n - ExoMedia version: `3.0`\r\n - Device OS version: `6.0`\r\n - Devide Manufacturer: `LG`\r\n - Device Name: `Nexus 5`\r\n \r\n###### Reproduction Steps\r\n 0.  Using an url (for example, [http://tracking.feedpress.it/link/4776/2831033/Essentialism_-_Do_Less_and_Achieve_More_Podcast_142.mp3](http://tracking.feedpress.it/link/4776/2831033/Essentialism_-_Do_Less_and_Achieve_More_Podcast_142.mp3) ) that contains keyword like \"m3u8\", \"mpd\", \"ism\", which is referenced as a MediaSourceType type in \r\n\r\n`  HLS(\".*m3u8.*\"),\r\n    DASH(\".*mpd.*\"),\r\n    SMOOTH_STREAM(\".*ism.*\"),\r\n    DEFAULT(null);`\r\n\r\nwill stably reproduce the following exception.\r\n\r\n\r\n\r\nI have committed the code to reproduce this by adding the Exception parameter in the callback.\r\nPlease refer to this link for more details.\r\n\r\nhttps://github.com/brianwernick/ExoMedia/compare/3.0...OttoRadio:3.0\r\n\r\n###### Expected Result\r\nUrl with \"ism\" should be able to play normal as other url resources.\r\n###### Actual Result\r\n``BaseMediaApi: Response code: 404\r\n                                                                                    com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404\r\n                                                                                        at com.google.android.exoplayer.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:210)\r\n                                                                                        at com.google.android.exoplayer.upstream.DataSourceInputStream.checkOpened(DataSourceInputStream.java:97)\r\n                                                                                        at com.google.android.exoplayer.upstream.DataSourceInputStream.open(DataSourceInputStream.java:56)\r\n                                                                                        at com.google.android.exoplayer.upstream.UriLoadable.load(UriLoadable.java:92)\r\n                                                                                        at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:209)\r\n                                                                                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)\r\n                                                                                        at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n                                                                                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n                                                                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n                                                                                        at java.lang.Thread.run(Thread.java:818)``\r\n"},"comment":{"url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/comments/197362173","html_url":"https://github.com/brianwernick/ExoMedia/issues/143#issuecomment-197362173","issue_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/143","id":197362173,"user":{"login":"brianwernick","id":8961257,"avatar_url":"https://avatars.githubusercontent.com/u/8961257?v=3","gravatar_id":"","url":"https://api.github.com/users/brianwernick","html_url":"https://github.com/brianwernick","followers_url":"https://api.github.com/users/brianwernick/followers","following_url":"https://api.github.com/users/brianwernick/following{/other_user}","gists_url":"https://api.github.com/users/brianwernick/gists{/gist_id}","starred_url":"https://api.github.com/users/brianwernick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianwernick/subscriptions","organizations_url":"https://api.github.com/users/brianwernick/orgs","repos_url":"https://api.github.com/users/brianwernick/repos","events_url":"https://api.github.com/users/brianwernick/events{/privacy}","received_events_url":"https://api.github.com/users/brianwernick/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T14:46:31Z","updated_at":"2016-03-16T14:46:31Z","body":"Yeah, its due to the \"ism\" part of \"Essentialism\" which is being captured by `.*ism.*`.  I've been worried about the way we are performing the HLS, Smooth Stream, and Dash determinations but have yet to come up with a more dependable solution.  If you have any ideas they would be greatly welcomed\r\n"}}