{"action":"created","comment":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/62023845","id":62023845,"diff_hunk":"@@ -42,8 +49,22 @@ def parse_download_page(self, url):\n         if len(torrent_ids) == 0:\n             raise UrlRewritingError('Unable to locate torrent ID from url %s' % url)\n         torrent_id = torrent_id_prog.search(torrent_ids[0]).group(1)\n-        return 'http://www.newpct.com/descargar/torrent/%s/dummy.html' % torrent_id\n+        return 'http://www.newpct.com/torrents/{:0>6}.torrent'.format(torrent_id)\n \n+    def parse_newpct1(self, url):\n+        log.verbose('Newpct1 URL: %s', url)\n+        url = url.replace('newpct1.com/', 'newpct1.com/descarga-torrent/')\n+        page = requests.get(url)\n+        try:\n+            soup = get_soup(page.text)\n+        except Exception as e:","path":"flexget/plugins/urlrewrite/newpct.py","position":36,"original_position":36,"commit_id":"43ce77cb98b99b8e601da871d5b5aab75f3482f8","original_commit_id":"43ce77cb98b99b8e601da871d5b5aab75f3482f8","user":{"login":"liiight","id":4374581,"avatar_url":"https://avatars.githubusercontent.com/u/4374581?v=3","gravatar_id":"","url":"https://api.github.com/users/liiight","html_url":"https://github.com/liiight","followers_url":"https://api.github.com/users/liiight/followers","following_url":"https://api.github.com/users/liiight/following{/other_user}","gists_url":"https://api.github.com/users/liiight/gists{/gist_id}","starred_url":"https://api.github.com/users/liiight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiight/subscriptions","organizations_url":"https://api.github.com/users/liiight/orgs","repos_url":"https://api.github.com/users/liiight/repos","events_url":"https://api.github.com/users/liiight/events{/privacy}","received_events_url":"https://api.github.com/users/liiight/received_events","type":"User","site_admin":false},"body":"That's no excuse :-)","created_at":"2016-05-04T11:28:43Z","updated_at":"2016-05-04T11:28:43Z","html_url":"https://github.com/Flexget/Flexget/pull/1134#discussion_r62023845","pull_request_url":"https://api.github.com/repos/Flexget/Flexget/pulls/1134","_links":{"self":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/62023845"},"html":{"href":"https://github.com/Flexget/Flexget/pull/1134#discussion_r62023845"},"pull_request":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1134"}}},"pull_request":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/1134","id":68836841,"html_url":"https://github.com/Flexget/Flexget/pull/1134","diff_url":"https://github.com/Flexget/Flexget/pull/1134.diff","patch_url":"https://github.com/Flexget/Flexget/pull/1134.patch","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/1134","number":1134,"state":"open","locked":false,"title":"Update newpct.py","user":{"login":"Lukeid","id":8581935,"avatar_url":"https://avatars.githubusercontent.com/u/8581935?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukeid","html_url":"https://github.com/Lukeid","followers_url":"https://api.github.com/users/Lukeid/followers","following_url":"https://api.github.com/users/Lukeid/following{/other_user}","gists_url":"https://api.github.com/users/Lukeid/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukeid/subscriptions","organizations_url":"https://api.github.com/users/Lukeid/orgs","repos_url":"https://api.github.com/users/Lukeid/repos","events_url":"https://api.github.com/users/Lukeid/events{/privacy}","received_events_url":"https://api.github.com/users/Lukeid/received_events","type":"User","site_admin":false},"body":"For newpct and newpct1 urls.","created_at":"2016-05-04T09:59:59Z","updated_at":"2016-05-04T11:28:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d731cb7f8471e583265f1eab18b63f8dcdc262a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Flexget/Flexget/pulls/1134/commits","review_comments_url":"https://api.github.com/repos/Flexget/Flexget/pulls/1134/comments","review_comment_url":"https://api.github.com/repos/Flexget/Flexget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/1134/comments","statuses_url":"https://api.github.com/repos/Flexget/Flexget/statuses/43ce77cb98b99b8e601da871d5b5aab75f3482f8","head":{"label":"Lukeid:Lukeid-patch-2","ref":"Lukeid-patch-2","sha":"43ce77cb98b99b8e601da871d5b5aab75f3482f8","user":{"login":"Lukeid","id":8581935,"avatar_url":"https://avatars.githubusercontent.com/u/8581935?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukeid","html_url":"https://github.com/Lukeid","followers_url":"https://api.github.com/users/Lukeid/followers","following_url":"https://api.github.com/users/Lukeid/following{/other_user}","gists_url":"https://api.github.com/users/Lukeid/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukeid/subscriptions","organizations_url":"https://api.github.com/users/Lukeid/orgs","repos_url":"https://api.github.com/users/Lukeid/repos","events_url":"https://api.github.com/users/Lukeid/events{/privacy}","received_events_url":"https://api.github.com/users/Lukeid/received_events","type":"User","site_admin":false},"repo":{"id":58039597,"name":"Flexget","full_name":"Lukeid/Flexget","owner":{"login":"Lukeid","id":8581935,"avatar_url":"https://avatars.githubusercontent.com/u/8581935?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukeid","html_url":"https://github.com/Lukeid","followers_url":"https://api.github.com/users/Lukeid/followers","following_url":"https://api.github.com/users/Lukeid/following{/other_user}","gists_url":"https://api.github.com/users/Lukeid/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukeid/subscriptions","organizations_url":"https://api.github.com/users/Lukeid/orgs","repos_url":"https://api.github.com/users/Lukeid/repos","events_url":"https://api.github.com/users/Lukeid/events{/privacy}","received_events_url":"https://api.github.com/users/Lukeid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lukeid/Flexget","description":"The official FlexGet repository","fork":true,"url":"https://api.github.com/repos/Lukeid/Flexget","forks_url":"https://api.github.com/repos/Lukeid/Flexget/forks","keys_url":"https://api.github.com/repos/Lukeid/Flexget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lukeid/Flexget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lukeid/Flexget/teams","hooks_url":"https://api.github.com/repos/Lukeid/Flexget/hooks","issue_events_url":"https://api.github.com/repos/Lukeid/Flexget/issues/events{/number}","events_url":"https://api.github.com/repos/Lukeid/Flexget/events","assignees_url":"https://api.github.com/repos/Lukeid/Flexget/assignees{/user}","branches_url":"https://api.github.com/repos/Lukeid/Flexget/branches{/branch}","tags_url":"https://api.github.com/repos/Lukeid/Flexget/tags","blobs_url":"https://api.github.com/repos/Lukeid/Flexget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lukeid/Flexget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lukeid/Flexget/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lukeid/Flexget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lukeid/Flexget/statuses/{sha}","languages_url":"https://api.github.com/repos/Lukeid/Flexget/languages","stargazers_url":"https://api.github.com/repos/Lukeid/Flexget/stargazers","contributors_url":"https://api.github.com/repos/Lukeid/Flexget/contributors","subscribers_url":"https://api.github.com/repos/Lukeid/Flexget/subscribers","subscription_url":"https://api.github.com/repos/Lukeid/Flexget/subscription","commits_url":"https://api.github.com/repos/Lukeid/Flexget/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lukeid/Flexget/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lukeid/Flexget/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lukeid/Flexget/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lukeid/Flexget/contents/{+path}","compare_url":"https://api.github.com/repos/Lukeid/Flexget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lukeid/Flexget/merges","archive_url":"https://api.github.com/repos/Lukeid/Flexget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lukeid/Flexget/downloads","issues_url":"https://api.github.com/repos/Lukeid/Flexget/issues{/number}","pulls_url":"https://api.github.com/repos/Lukeid/Flexget/pulls{/number}","milestones_url":"https://api.github.com/repos/Lukeid/Flexget/milestones{/number}","notifications_url":"https://api.github.com/repos/Lukeid/Flexget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lukeid/Flexget/labels{/name}","releases_url":"https://api.github.com/repos/Lukeid/Flexget/releases{/id}","deployments_url":"https://api.github.com/repos/Lukeid/Flexget/deployments","created_at":"2016-05-04T09:26:18Z","updated_at":"2016-05-04T09:26:27Z","pushed_at":"2016-05-04T10:50:57Z","git_url":"git://github.com/Lukeid/Flexget.git","ssh_url":"git@github.com:Lukeid/Flexget.git","clone_url":"https://github.com/Lukeid/Flexget.git","svn_url":"https://github.com/Lukeid/Flexget","homepage":"http://www.flexget.com","size":36699,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Flexget:develop","ref":"develop","sha":"ff99b7f6572967448b74c35713bb0258dd1b8ab0","user":{"login":"Flexget","id":682553,"avatar_url":"https://avatars.githubusercontent.com/u/682553?v=3","gravatar_id":"","url":"https://api.github.com/users/Flexget","html_url":"https://github.com/Flexget","followers_url":"https://api.github.com/users/Flexget/followers","following_url":"https://api.github.com/users/Flexget/following{/other_user}","gists_url":"https://api.github.com/users/Flexget/gists{/gist_id}","starred_url":"https://api.github.com/users/Flexget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flexget/subscriptions","organizations_url":"https://api.github.com/users/Flexget/orgs","repos_url":"https://api.github.com/users/Flexget/repos","events_url":"https://api.github.com/users/Flexget/events{/privacy}","received_events_url":"https://api.github.com/users/Flexget/received_events","type":"Organization","site_admin":false},"repo":{"id":1512901,"name":"Flexget","full_name":"Flexget/Flexget","owner":{"login":"Flexget","id":682553,"avatar_url":"https://avatars.githubusercontent.com/u/682553?v=3","gravatar_id":"","url":"https://api.github.com/users/Flexget","html_url":"https://github.com/Flexget","followers_url":"https://api.github.com/users/Flexget/followers","following_url":"https://api.github.com/users/Flexget/following{/other_user}","gists_url":"https://api.github.com/users/Flexget/gists{/gist_id}","starred_url":"https://api.github.com/users/Flexget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flexget/subscriptions","organizations_url":"https://api.github.com/users/Flexget/orgs","repos_url":"https://api.github.com/users/Flexget/repos","events_url":"https://api.github.com/users/Flexget/events{/privacy}","received_events_url":"https://api.github.com/users/Flexget/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Flexget/Flexget","description":"The official FlexGet repository","fork":false,"url":"https://api.github.com/repos/Flexget/Flexget","forks_url":"https://api.github.com/repos/Flexget/Flexget/forks","keys_url":"https://api.github.com/repos/Flexget/Flexget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flexget/Flexget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flexget/Flexget/teams","hooks_url":"https://api.github.com/repos/Flexget/Flexget/hooks","issue_events_url":"https://api.github.com/repos/Flexget/Flexget/issues/events{/number}","events_url":"https://api.github.com/repos/Flexget/Flexget/events","assignees_url":"https://api.github.com/repos/Flexget/Flexget/assignees{/user}","branches_url":"https://api.github.com/repos/Flexget/Flexget/branches{/branch}","tags_url":"https://api.github.com/repos/Flexget/Flexget/tags","blobs_url":"https://api.github.com/repos/Flexget/Flexget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flexget/Flexget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flexget/Flexget/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flexget/Flexget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flexget/Flexget/statuses/{sha}","languages_url":"https://api.github.com/repos/Flexget/Flexget/languages","stargazers_url":"https://api.github.com/repos/Flexget/Flexget/stargazers","contributors_url":"https://api.github.com/repos/Flexget/Flexget/contributors","subscribers_url":"https://api.github.com/repos/Flexget/Flexget/subscribers","subscription_url":"https://api.github.com/repos/Flexget/Flexget/subscription","commits_url":"https://api.github.com/repos/Flexget/Flexget/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flexget/Flexget/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flexget/Flexget/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flexget/Flexget/issues/comments{/number}","contents_url":"https://api.github.com/repos/Flexget/Flexget/contents/{+path}","compare_url":"https://api.github.com/repos/Flexget/Flexget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flexget/Flexget/merges","archive_url":"https://api.github.com/repos/Flexget/Flexget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flexget/Flexget/downloads","issues_url":"https://api.github.com/repos/Flexget/Flexget/issues{/number}","pulls_url":"https://api.github.com/repos/Flexget/Flexget/pulls{/number}","milestones_url":"https://api.github.com/repos/Flexget/Flexget/milestones{/number}","notifications_url":"https://api.github.com/repos/Flexget/Flexget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flexget/Flexget/labels{/name}","releases_url":"https://api.github.com/repos/Flexget/Flexget/releases{/id}","deployments_url":"https://api.github.com/repos/Flexget/Flexget/deployments","created_at":"2011-03-22T19:33:44Z","updated_at":"2016-05-03T12:00:14Z","pushed_at":"2016-05-04T10:50:57Z","git_url":"git://github.com/Flexget/Flexget.git","ssh_url":"git@github.com:Flexget/Flexget.git","clone_url":"https://github.com/Flexget/Flexget.git","svn_url":"https://github.com/Flexget/Flexget","homepage":"http://www.flexget.com","size":45084,"stargazers_count":476,"watchers_count":476,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":285,"mirror_url":null,"open_issues_count":92,"forks":285,"open_issues":92,"watchers":476,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1134"},"html":{"href":"https://github.com/Flexget/Flexget/pull/1134"},"issue":{"href":"https://api.github.com/repos/Flexget/Flexget/issues/1134"},"comments":{"href":"https://api.github.com/repos/Flexget/Flexget/issues/1134/comments"},"review_comments":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1134/comments"},"review_comment":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1134/commits"},"statuses":{"href":"https://api.github.com/repos/Flexget/Flexget/statuses/43ce77cb98b99b8e601da871d5b5aab75f3482f8"}}}}