{"action":"created","issue":{"url":"https://api.github.com/repos/flagbug/YoutubeExtractor/issues/130","labels_url":"https://api.github.com/repos/flagbug/YoutubeExtractor/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/flagbug/YoutubeExtractor/issues/130/comments","events_url":"https://api.github.com/repos/flagbug/YoutubeExtractor/issues/130/events","html_url":"https://github.com/flagbug/YoutubeExtractor/issues/130","id":96894906,"number":130,"title":"ArgumentNullException on calling DownloadUrlResolver.GetDownloadUrls","user":{"login":"bbougot","id":8962802,"avatar_url":"https://avatars.githubusercontent.com/u/8962802?v=3","gravatar_id":"","url":"https://api.github.com/users/bbougot","html_url":"https://github.com/bbougot","followers_url":"https://api.github.com/users/bbougot/followers","following_url":"https://api.github.com/users/bbougot/following{/other_user}","gists_url":"https://api.github.com/users/bbougot/gists{/gist_id}","starred_url":"https://api.github.com/users/bbougot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbougot/subscriptions","organizations_url":"https://api.github.com/users/bbougot/orgs","repos_url":"https://api.github.com/users/bbougot/repos","events_url":"https://api.github.com/users/bbougot/events{/privacy}","received_events_url":"https://api.github.com/users/bbougot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T20:07:34Z","updated_at":"2015-07-24T09:43:54Z","closed_at":null,"body":"I'm having a ArgumentNullException when passing a YT url as a param to DownloadUrlResolver.GetDownloadUrls. \r\n\r\n![sans-titre-1](https://cloud.githubusercontent.com/assets/8962802/8860985/ba7e31e6-3187-11e5-8132-dbc2ce24cdb9.jpg)\r\n\r\nThe url syntax is OK (http://www.youtube.com/watch?v=dFQS8IKrUHA) and the exception occurs with any Youtube link. It seems the problem comes from HttpHelper.DownloadString calling :\r\n\r\nusing (var client = new WebClient())\r\n{\r\n           client.Encoding = System.Text.Encoding.UTF8;\r\n           return client.DownloadString(url);\r\n}\r\n\r\nEvery Youtube request using client.DownloadString(url) results in a ArgumentNullException exception."},"comment":{"url":"https://api.github.com/repos/flagbug/YoutubeExtractor/issues/comments/124457748","html_url":"https://github.com/flagbug/YoutubeExtractor/issues/130#issuecomment-124457748","issue_url":"https://api.github.com/repos/flagbug/YoutubeExtractor/issues/130","id":124457748,"user":{"login":"tariqalkhassa","id":9692905,"avatar_url":"https://avatars.githubusercontent.com/u/9692905?v=3","gravatar_id":"","url":"https://api.github.com/users/tariqalkhassa","html_url":"https://github.com/tariqalkhassa","followers_url":"https://api.github.com/users/tariqalkhassa/followers","following_url":"https://api.github.com/users/tariqalkhassa/following{/other_user}","gists_url":"https://api.github.com/users/tariqalkhassa/gists{/gist_id}","starred_url":"https://api.github.com/users/tariqalkhassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariqalkhassa/subscriptions","organizations_url":"https://api.github.com/users/tariqalkhassa/orgs","repos_url":"https://api.github.com/users/tariqalkhassa/repos","events_url":"https://api.github.com/users/tariqalkhassa/events{/privacy}","received_events_url":"https://api.github.com/users/tariqalkhassa/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T09:43:54Z","updated_at":"2015-07-24T09:43:54Z","body":"try to replace the code at DownloadUrlResolver.cs with this one:\r\n\r\nhttps://github.com/tariqalkhassa/YoutubeExtractor/blob/master/YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs"}}