{"action":"opened","number":6406,"pull_request":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/6406","id":41180378,"html_url":"https://github.com/rg3/youtube-dl/pull/6406","diff_url":"https://github.com/rg3/youtube-dl/pull/6406.diff","patch_url":"https://github.com/rg3/youtube-dl/pull/6406.patch","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/6406","number":6406,"state":"open","locked":false,"title":"[viewster] extract the api auth token","user":{"login":"remitamine","id":10879694,"avatar_url":"https://avatars.githubusercontent.com/u/10879694?v=3","gravatar_id":"","url":"https://api.github.com/users/remitamine","html_url":"https://github.com/remitamine","followers_url":"https://api.github.com/users/remitamine/followers","following_url":"https://api.github.com/users/remitamine/following{/other_user}","gists_url":"https://api.github.com/users/remitamine/gists{/gist_id}","starred_url":"https://api.github.com/users/remitamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remitamine/subscriptions","organizations_url":"https://api.github.com/users/remitamine/orgs","repos_url":"https://api.github.com/users/remitamine/repos","events_url":"https://api.github.com/users/remitamine/events{/privacy}","received_events_url":"https://api.github.com/users/remitamine/received_events","type":"User","site_admin":false},"body":"it should fix the 403 error like that:\r\n```\r\nyoutube-dl -v http://www.viewster.com/serie/1152-12102-000/house-of-venus-show-season-1/\r\n[debug] System config: []\r\n[debug] User config: ['--external-downloader', 'aria2c', '--external-downloader-args', '-x 16 --check-certificate=false', '-f', 'best[height<=?720]', '--sub-lang', 'ar,en', '--write-sub']\r\n[debug] Command-line args: ['-v', 'http://www.viewster.com/serie/1152-12102-000/house-of-venus-show-season-1/']\r\n[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8\r\n[debug] youtube-dl version 2015.07.21\r\n[debug] Python version 3.4.3 - Linux-4.1.2-2-ARCH-x86_64-with-arch-Arch-Linux\r\n[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2, rtmpdump 2.4\r\n[debug] Proxy map: {}\r\n[Viewster] 1152-12102-000: Downloading entry JSON\r\nERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.\r\n  File \"/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py\", line 314, in _request_webpage\r\n    return self._downloader.urlopen(url_or_request)\r\n  File \"/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py\", line 1731, in urlopen\r\n    return self._opener.open(req, timeout=self._socket_timeout)\r\n  File \"/usr/lib/python3.4/urllib/request.py\", line 469, in open\r\n    response = meth(req, response)\r\n  File \"/usr/lib/python3.4/urllib/request.py\", line 579, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/usr/lib/python3.4/urllib/request.py\", line 507, in error\r\n    return self._call_chain(*args)\r\n  File \"/usr/lib/python3.4/urllib/request.py\", line 441, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/lib/python3.4/urllib/request.py\", line 587, in http_error_default\r\n    raise HTTPError(req.full_url, code, msg, hdrs, fp)\r\n```\r\nafter the change\r\n```\r\nyoutube-dl -v http://www.viewster.com/serie/1152-12102-000/house-of-venus-show-season-1/\r\n[debug] System config: []\r\n[debug] User config: ['--external-downloader', 'aria2c', '--external-downloader-args', '-x 16 --check-certificate=false', '-f', 'best[height<=?720]', '--sub-lang', 'ar,en', '--write-sub']\r\n[debug] Command-line args: ['-v', 'http://www.viewster.com/serie/1152-12102-000/house-of-venus-show-season-1/']\r\n[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8\r\n[debug] youtube-dl version 2015.07.21\r\n[debug] Python version 3.4.3 - Linux-4.1.2-2-ARCH-x86_64-with-arch-Arch-Linux\r\n[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2, rtmpdump 2.4\r\n[debug] Proxy map: {}\r\n[Viewster] 1152-12102-000: Downloading entry JSON\r\n[Viewster] 1152-12102-000: Downloading series JSON\r\n[download] Downloading playlist: House of Venus Show - Season 1\r\n[Viewster] playlist House of Venus Show - Season 1: Collected 6 video ids (downloading 6 of them)\r\n[download] Downloading video 1 of 6\r\n[Viewster] 1152-12102-001: Downloading entry JSON\r\n[Viewster] 1152-12102-001: Downloading application/f4m+xml JSON\r\n[Viewster] 1152-12102-001: Downloading f4m manifest\r\n```\r\nthis what makes me think the problem is in the auth token\r\nusing the hard coded auth token:\r\n```\r\ncurl 'https://public-api.viewster.com/search/1152-12102-000' -H 'Auth-token: /YqhSYsx8EaU9Bsta3ojlA=='\r\n{\"Message\":\"Authentication token is not valid.\"}\r\n```\r\nusing an auth token extracted from the browser:\r\n```\r\ncurl 'https://public-api.viewster.com/search/1152-12102-000' -H 'Auth-token: 5pFXpdDMP06lsLe5K/zinw=='\r\n{\"Id\":1468,\"OriginId\":\"1152-12102-000\",\"Title\":\"House of Venus Show - Season 1\",\"Type\":\"Serie\",\"Country\":\"Canada\",\"Actors\":\"Amanda Lepore, Cotton, Dickey Doo, Jennifer Legge, Lady Miss Kier, Mark Kenneth Woods, Michael Venus\",\"Directors\":\"Mark Kenneth Woods\",\"Genres\":[{\"Id\":9,\"Name\":\"Documentary\"}],\"Synopsis\":{\"Id\":1648,\"Title\":\"House of Venus Show - Season 1\",\"Language\":\"EN\",\"Short\":\"\\\"The House of Venus Show\\\" is a half-hour variety show featuring comedic sketches, interviews and musical numbers.\",\"Detailed\":\"\\\"The House of Venus Show\\\" is a half-hour variety show featuring comedic sketches, interviews and musical numbers. The show entertains by cleverly spoofing social and political phenomena and popular culture with a definite queer \\\"twist\\\". The show also incorporates guest performances by local and international artists.\"},\"Duration\":null,\"ReleaseDate\":\"2005-07-05T00:00:00\",\"LanguageSets\":[{\"Audio\":\"en\",\"Subtitle\":null}]}\r\n```","created_at":"2015-07-29T22:35:52Z","updated_at":"2015-07-29T22:35:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40386d5fe74b36c91afe33c28a41821694a86ef3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/6406/commits","review_comments_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/6406/comments","review_comment_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/6406/comments","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/960c978ef4ed5c9ca94bf1ec0c303c30173dab41","head":{"label":"remitamine:viewster","ref":"viewster","sha":"960c978ef4ed5c9ca94bf1ec0c303c30173dab41","user":{"login":"remitamine","id":10879694,"avatar_url":"https://avatars.githubusercontent.com/u/10879694?v=3","gravatar_id":"","url":"https://api.github.com/users/remitamine","html_url":"https://github.com/remitamine","followers_url":"https://api.github.com/users/remitamine/followers","following_url":"https://api.github.com/users/remitamine/following{/other_user}","gists_url":"https://api.github.com/users/remitamine/gists{/gist_id}","starred_url":"https://api.github.com/users/remitamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remitamine/subscriptions","organizations_url":"https://api.github.com/users/remitamine/orgs","repos_url":"https://api.github.com/users/remitamine/repos","events_url":"https://api.github.com/users/remitamine/events{/privacy}","received_events_url":"https://api.github.com/users/remitamine/received_events","type":"User","site_admin":false},"repo":{"id":37925718,"name":"youtube-dl","full_name":"remitamine/youtube-dl","owner":{"login":"remitamine","id":10879694,"avatar_url":"https://avatars.githubusercontent.com/u/10879694?v=3","gravatar_id":"","url":"https://api.github.com/users/remitamine","html_url":"https://github.com/remitamine","followers_url":"https://api.github.com/users/remitamine/followers","following_url":"https://api.github.com/users/remitamine/following{/other_user}","gists_url":"https://api.github.com/users/remitamine/gists{/gist_id}","starred_url":"https://api.github.com/users/remitamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remitamine/subscriptions","organizations_url":"https://api.github.com/users/remitamine/orgs","repos_url":"https://api.github.com/users/remitamine/repos","events_url":"https://api.github.com/users/remitamine/events{/privacy}","received_events_url":"https://api.github.com/users/remitamine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/remitamine/youtube-dl","description":"Small command-line program to download videos from YouTube.com and other video sites","fork":true,"url":"https://api.github.com/repos/remitamine/youtube-dl","forks_url":"https://api.github.com/repos/remitamine/youtube-dl/forks","keys_url":"https://api.github.com/repos/remitamine/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remitamine/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remitamine/youtube-dl/teams","hooks_url":"https://api.github.com/repos/remitamine/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/remitamine/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/remitamine/youtube-dl/events","assignees_url":"https://api.github.com/repos/remitamine/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/remitamine/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/remitamine/youtube-dl/tags","blobs_url":"https://api.github.com/repos/remitamine/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remitamine/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remitamine/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/remitamine/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remitamine/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/remitamine/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/remitamine/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/remitamine/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/remitamine/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/remitamine/youtube-dl/subscription","commits_url":"https://api.github.com/repos/remitamine/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/remitamine/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/remitamine/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/remitamine/youtube-dl/issues/comments{/number}","contents_url":"https://api.github.com/repos/remitamine/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/remitamine/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remitamine/youtube-dl/merges","archive_url":"https://api.github.com/repos/remitamine/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remitamine/youtube-dl/downloads","issues_url":"https://api.github.com/repos/remitamine/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/remitamine/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/remitamine/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/remitamine/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remitamine/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/remitamine/youtube-dl/releases{/id}","created_at":"2015-06-23T14:59:19Z","updated_at":"2015-06-23T14:59:31Z","pushed_at":"2015-07-29T22:23:51Z","git_url":"git://github.com/remitamine/youtube-dl.git","ssh_url":"git@github.com:remitamine/youtube-dl.git","clone_url":"https://github.com/remitamine/youtube-dl.git","svn_url":"https://github.com/remitamine/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":33264,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rg3:master","ref":"master","sha":"34866b4836eab8dd2fcaae88dc1ed5c79a742c92","user":{"login":"rg3","id":53487,"avatar_url":"https://avatars.githubusercontent.com/u/53487?v=3","gravatar_id":"","url":"https://api.github.com/users/rg3","html_url":"https://github.com/rg3","followers_url":"https://api.github.com/users/rg3/followers","following_url":"https://api.github.com/users/rg3/following{/other_user}","gists_url":"https://api.github.com/users/rg3/gists{/gist_id}","starred_url":"https://api.github.com/users/rg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rg3/subscriptions","organizations_url":"https://api.github.com/users/rg3/orgs","repos_url":"https://api.github.com/users/rg3/repos","events_url":"https://api.github.com/users/rg3/events{/privacy}","received_events_url":"https://api.github.com/users/rg3/received_events","type":"User","site_admin":false},"repo":{"id":1039520,"name":"youtube-dl","full_name":"rg3/youtube-dl","owner":{"login":"rg3","id":53487,"avatar_url":"https://avatars.githubusercontent.com/u/53487?v=3","gravatar_id":"","url":"https://api.github.com/users/rg3","html_url":"https://github.com/rg3","followers_url":"https://api.github.com/users/rg3/followers","following_url":"https://api.github.com/users/rg3/following{/other_user}","gists_url":"https://api.github.com/users/rg3/gists{/gist_id}","starred_url":"https://api.github.com/users/rg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rg3/subscriptions","organizations_url":"https://api.github.com/users/rg3/orgs","repos_url":"https://api.github.com/users/rg3/repos","events_url":"https://api.github.com/users/rg3/events{/privacy}","received_events_url":"https://api.github.com/users/rg3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rg3/youtube-dl","description":"Small command-line program to download videos from YouTube.com and other video sites","fork":false,"url":"https://api.github.com/repos/rg3/youtube-dl","forks_url":"https://api.github.com/repos/rg3/youtube-dl/forks","keys_url":"https://api.github.com/repos/rg3/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rg3/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rg3/youtube-dl/teams","hooks_url":"https://api.github.com/repos/rg3/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/rg3/youtube-dl/events","assignees_url":"https://api.github.com/repos/rg3/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/rg3/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/rg3/youtube-dl/tags","blobs_url":"https://api.github.com/repos/rg3/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rg3/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rg3/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/rg3/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/rg3/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/rg3/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/rg3/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/rg3/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/rg3/youtube-dl/subscription","commits_url":"https://api.github.com/repos/rg3/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/rg3/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments{/number}","contents_url":"https://api.github.com/repos/rg3/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/rg3/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rg3/youtube-dl/merges","archive_url":"https://api.github.com/repos/rg3/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rg3/youtube-dl/downloads","issues_url":"https://api.github.com/repos/rg3/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/rg3/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/rg3/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/rg3/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rg3/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/rg3/youtube-dl/releases{/id}","created_at":"2010-10-31T14:35:07Z","updated_at":"2015-07-29T20:51:17Z","pushed_at":"2015-07-29T22:35:52Z","git_url":"git://github.com/rg3/youtube-dl.git","ssh_url":"git@github.com:rg3/youtube-dl.git","clone_url":"https://github.com/rg3/youtube-dl.git","svn_url":"https://github.com/rg3/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":79961,"stargazers_count":10645,"watchers_count":10645,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2137,"mirror_url":null,"open_issues_count":1199,"forks":2137,"open_issues":1199,"watchers":10645,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/6406"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/6406"},"issue":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/6406"},"comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/6406/comments"},"review_comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/6406/comments"},"review_comment":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/6406/commits"},"statuses":{"href":"https://api.github.com/repos/rg3/youtube-dl/statuses/960c978ef4ed5c9ca94bf1ec0c303c30173dab41"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}