{"action":"opened","issue":{"url":"https://api.github.com/repos/nficano/pytube/issues/58","labels_url":"https://api.github.com/repos/nficano/pytube/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/nficano/pytube/issues/58/comments","events_url":"https://api.github.com/repos/nficano/pytube/issues/58/events","html_url":"https://github.com/nficano/pytube/issues/58","id":94594630,"number":58,"title":"AttributeError exception when specifying extension and resolution to get()","user":{"login":"ramhiser","id":261183,"avatar_url":"https://avatars.githubusercontent.com/u/261183?v=3","gravatar_id":"","url":"https://api.github.com/users/ramhiser","html_url":"https://github.com/ramhiser","followers_url":"https://api.github.com/users/ramhiser/followers","following_url":"https://api.github.com/users/ramhiser/following{/other_user}","gists_url":"https://api.github.com/users/ramhiser/gists{/gist_id}","starred_url":"https://api.github.com/users/ramhiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramhiser/subscriptions","organizations_url":"https://api.github.com/users/ramhiser/orgs","repos_url":"https://api.github.com/users/ramhiser/repos","events_url":"https://api.github.com/users/ramhiser/events{/privacy}","received_events_url":"https://api.github.com/users/ramhiser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-12T19:55:00Z","updated_at":"2015-07-12T19:55:00Z","closed_at":null,"body":"Using version 0.2 from PyPI, an `AttributeError` exception is thrown when both the file extension and resolution are specified. It works if I remove the `resolution` arg, but a higher resolution (`720p`) is downloaded.\r\n\r\n```python\r\nfrom pytube import YouTube\r\nyt = YouTube()\r\nyt.url = \"http://www.youtube.com/watch?v=R7yfISlGLNU\"\r\nvideo = yt.get(extension='mp4', resolution='360p')\r\nvideo.download()\r\n```\r\nThe video exists as can be seen from `filter`:\r\n\r\n```python\r\n>>> yt.filter('mp4', '360p')\r\n[<Video: H.264 (.mp4) - 360p - Baseline>]\r\n```\r\n\r\nError at last line:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nAttributeError: 'NoneType' object has no attribute 'download'\r\n```"}}