{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/7509","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/7509/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/7509/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/7509/events","html_url":"https://github.com/rg3/youtube-dl/issues/7509","id":117006247,"number":7509,"title":"return specific error when video blocked on copyright grounds  (python lib)","user":{"login":"dattaz","id":6572195,"avatar_url":"https://avatars.githubusercontent.com/u/6572195?v=3","gravatar_id":"","url":"https://api.github.com/users/dattaz","html_url":"https://github.com/dattaz","followers_url":"https://api.github.com/users/dattaz/followers","following_url":"https://api.github.com/users/dattaz/following{/other_user}","gists_url":"https://api.github.com/users/dattaz/gists{/gist_id}","starred_url":"https://api.github.com/users/dattaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dattaz/subscriptions","organizations_url":"https://api.github.com/users/dattaz/orgs","repos_url":"https://api.github.com/users/dattaz/repos","events_url":"https://api.github.com/users/dattaz/events{/privacy}","received_events_url":"https://api.github.com/users/dattaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-15T17:31:24Z","updated_at":"2015-11-15T18:20:21Z","closed_at":null,"body":"actually it's return a generic error : youtube_dl.utils.DownloadError (same as no internet connection for example)\r\nit's will be useful to have a specific error, something like youtube_dl.utils.BlockedCopyright "},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/156841283","html_url":"https://github.com/rg3/youtube-dl/issues/7509#issuecomment-156841283","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/7509","id":156841283,"user":{"login":"jaimeMF","id":1239727,"avatar_url":"https://avatars.githubusercontent.com/u/1239727?v=3","gravatar_id":"","url":"https://api.github.com/users/jaimeMF","html_url":"https://github.com/jaimeMF","followers_url":"https://api.github.com/users/jaimeMF/followers","following_url":"https://api.github.com/users/jaimeMF/following{/other_user}","gists_url":"https://api.github.com/users/jaimeMF/gists{/gist_id}","starred_url":"https://api.github.com/users/jaimeMF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaimeMF/subscriptions","organizations_url":"https://api.github.com/users/jaimeMF/orgs","repos_url":"https://api.github.com/users/jaimeMF/repos","events_url":"https://api.github.com/users/jaimeMF/events{/privacy}","received_events_url":"https://api.github.com/users/jaimeMF/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T18:20:21Z","updated_at":"2015-11-15T18:20:21Z","body":"There are a lot of possible error messages (georestriction, removed due to copyright, removed by the user, temporary problems ...). I don't think we can accurately classify them. As I said if you get the original exception, you can get the `YouTube said: This video is available in France, French Guiana, Guadeloupe, Martinique, New Caledonia, French Polynesia, Saint Pierre and Miquelon, Réunion, Wallis and Futuna, Mayotte only` message."}}