{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/11176","repository_url":"https://api.github.com/repos/rg3/youtube-dl","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/11176/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/11176/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/11176/events","html_url":"https://github.com/rg3/youtube-dl/issues/11176","id":188941125,"number":11176,"title":"Use OAuth tokens instead of .netrc where possible","user":{"login":"Saklad5","id":4258823,"avatar_url":"https://avatars.githubusercontent.com/u/4258823?v=3","gravatar_id":"","url":"https://api.github.com/users/Saklad5","html_url":"https://github.com/Saklad5","followers_url":"https://api.github.com/users/Saklad5/followers","following_url":"https://api.github.com/users/Saklad5/following{/other_user}","gists_url":"https://api.github.com/users/Saklad5/gists{/gist_id}","starred_url":"https://api.github.com/users/Saklad5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saklad5/subscriptions","organizations_url":"https://api.github.com/users/Saklad5/orgs","repos_url":"https://api.github.com/users/Saklad5/repos","events_url":"https://api.github.com/users/Saklad5/events{/privacy}","received_events_url":"https://api.github.com/users/Saklad5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-12T23:27:40Z","updated_at":"2016-11-13T03:30:53Z","closed_at":null,"body":"## Please follow the guide below\r\n\r\n- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly\r\n- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])\r\n- Use *Preview* tab to see how your issue will actually look like\r\n\r\n---\r\n\r\n### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2016.11.08.1*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.\r\n- [x] I’ve **verified** and **I assure** that I'm running youtube-dl **2016.11.08.1**\r\n\r\n### Before submitting an *issue* make sure you have:\r\n- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections\r\n- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones\r\n\r\n### What is the purpose of your *issue*?\r\n- [ ] Bug report (encountered problems with youtube-dl)\r\n- [ ] Site support request (request for adding support for a new site)\r\n- [x] Feature request (request for a new functionality)\r\n- [ ] Question\r\n- [ ] Other\r\n\r\n---\r\n\r\n### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*\r\n\r\n\r\n\r\n### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):\r\n- Single video: https://www.youtube.com/watch?v=BaW_jenozKc\r\n- Single video: https://youtu.be/BaW_jenozKc\r\n- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc\r\n\r\n---\r\n\r\nCurrently, the only method to automatically authenticate youtube-dl requests is with a cleartext .netrc file. This is obviously extremely insecure, and I think it would be much better if youtube-dl requested OAuth tokens from supported sites instead.\r\n\r\nAlternatively, allow a command to be run before and after accessing .netrc, which would allow the user to encrypt and decrypt the file as they see fit."},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/260164710","html_url":"https://github.com/rg3/youtube-dl/issues/11176#issuecomment-260164710","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/11176","id":260164710,"user":{"login":"yan12125","id":1937689,"avatar_url":"https://avatars.githubusercontent.com/u/1937689?v=3","gravatar_id":"","url":"https://api.github.com/users/yan12125","html_url":"https://github.com/yan12125","followers_url":"https://api.github.com/users/yan12125/followers","following_url":"https://api.github.com/users/yan12125/following{/other_user}","gists_url":"https://api.github.com/users/yan12125/gists{/gist_id}","starred_url":"https://api.github.com/users/yan12125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan12125/subscriptions","organizations_url":"https://api.github.com/users/yan12125/orgs","repos_url":"https://api.github.com/users/yan12125/repos","events_url":"https://api.github.com/users/yan12125/events{/privacy}","received_events_url":"https://api.github.com/users/yan12125/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T03:30:53Z","updated_at":"2016-11-13T03:30:53Z","body":"To implement OAuth, a headache is how to handle expired tokens."}}
{"actor":{"display_login":"yan12125"}}