{"action":"created","comment":{"url":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments/217931488","pull_request_review_id":155761345,"id":217931488,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzkzMTQ4OA==","diff_hunk":"@@ -559,7 +559,7 @@ def should_replace(ep_status, old_quality, new_quality, allowed_qualities, prefe\n         :param search_type: The search type, that started this method\n         :return: True if the old quality should be replaced with new quality\n         \"\"\"\n-        if ep_status and ep_status not in (DOWNLOADED, SNATCHED, SNATCHED_PROPER):","path":"medusa/common.py","position":4,"original_position":4,"commit_id":"e95977de4dd946c229a5eefa4c8a2d22546c1063","original_commit_id":"e95977de4dd946c229a5eefa4c8a2d22546c1063","user":{"login":"medariox","id":2893509,"node_id":"MDQ6VXNlcjI4OTM1MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/2893509?v=4","gravatar_id":"","url":"https://api.github.com/users/medariox","html_url":"https://github.com/medariox","followers_url":"https://api.github.com/users/medariox/followers","following_url":"https://api.github.com/users/medariox/following{/other_user}","gists_url":"https://api.github.com/users/medariox/gists{/gist_id}","starred_url":"https://api.github.com/users/medariox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medariox/subscriptions","organizations_url":"https://api.github.com/users/medariox/orgs","repos_url":"https://api.github.com/users/medariox/repos","events_url":"https://api.github.com/users/medariox/events{/privacy}","received_events_url":"https://api.github.com/users/medariox/received_events","type":"User","site_admin":false},"body":"I suspect some users have `quality` as `0` for some reason and this was causing it to skip the second condition.","created_at":"2018-09-16T23:07:00Z","updated_at":"2018-09-16T23:07:00Z","html_url":"https://github.com/pymedusa/Medusa/pull/5227#discussion_r217931488","pull_request_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments/217931488"},"html":{"href":"https://github.com/pymedusa/Medusa/pull/5227#discussion_r217931488"},"pull_request":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227"}}},"pull_request":{"url":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227","id":215834995,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODM0OTk1","html_url":"https://github.com/pymedusa/Medusa/pull/5227","diff_url":"https://github.com/pymedusa/Medusa/pull/5227.diff","patch_url":"https://github.com/pymedusa/Medusa/pull/5227.patch","issue_url":"https://api.github.com/repos/pymedusa/Medusa/issues/5227","number":5227,"state":"open","locked":false,"title":"Try to fix backlog searches downloading unwanted episodes","user":{"login":"medariox","id":2893509,"node_id":"MDQ6VXNlcjI4OTM1MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/2893509?v=4","gravatar_id":"","url":"https://api.github.com/users/medariox","html_url":"https://github.com/medariox","followers_url":"https://api.github.com/users/medariox/followers","following_url":"https://api.github.com/users/medariox/following{/other_user}","gists_url":"https://api.github.com/users/medariox/gists{/gist_id}","starred_url":"https://api.github.com/users/medariox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medariox/subscriptions","organizations_url":"https://api.github.com/users/medariox/orgs","repos_url":"https://api.github.com/users/medariox/repos","events_url":"https://api.github.com/users/medariox/events{/privacy}","received_events_url":"https://api.github.com/users/medariox/received_events","type":"User","site_admin":false},"body":"- [x] PR is based on the DEVELOP branch\r\n- [x] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review\r\n- [x] Read the [contribution guide](https://github.com/pymedusa/Medusa/blob/master/.github/CONTRIBUTING.md)\r\n\r\nPossibly fixes #5225 ","created_at":"2018-09-16T17:26:25Z","updated_at":"2018-09-16T23:07:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d5f00c33db622c6ef9069da609dba6d89c72fa4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":330483526,"node_id":"MDU6TGFiZWwzMzA0ODM1MjY=","url":"https://api.github.com/repos/pymedusa/Medusa/labels/Bug","name":"Bug","color":"d93f0b","default":false},{"id":344673395,"node_id":"MDU6TGFiZWwzNDQ2NzMzOTU=","url":"https://api.github.com/repos/pymedusa/Medusa/labels/Priority:%201.%20High","name":"Priority: 1. High","color":"e11d21","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227/commits","review_comments_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227/comments","review_comment_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pymedusa/Medusa/issues/5227/comments","statuses_url":"https://api.github.com/repos/pymedusa/Medusa/statuses/e95977de4dd946c229a5eefa4c8a2d22546c1063","head":{"label":"pymedusa:feature/fix-unwanted-backlog-snatches","ref":"feature/fix-unwanted-backlog-snatches","sha":"e95977de4dd946c229a5eefa4c8a2d22546c1063","user":{"login":"pymedusa","id":16712498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzEyNDk4","avatar_url":"https://avatars1.githubusercontent.com/u/16712498?v=4","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"repo":{"id":52334681,"node_id":"MDEwOlJlcG9zaXRvcnk1MjMzNDY4MQ==","name":"Medusa","full_name":"pymedusa/Medusa","private":false,"owner":{"login":"pymedusa","id":16712498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzEyNDk4","avatar_url":"https://avatars1.githubusercontent.com/u/16712498?v=4","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pymedusa/Medusa","description":"Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.","fork":false,"url":"https://api.github.com/repos/pymedusa/Medusa","forks_url":"https://api.github.com/repos/pymedusa/Medusa/forks","keys_url":"https://api.github.com/repos/pymedusa/Medusa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pymedusa/Medusa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pymedusa/Medusa/teams","hooks_url":"https://api.github.com/repos/pymedusa/Medusa/hooks","issue_events_url":"https://api.github.com/repos/pymedusa/Medusa/issues/events{/number}","events_url":"https://api.github.com/repos/pymedusa/Medusa/events","assignees_url":"https://api.github.com/repos/pymedusa/Medusa/assignees{/user}","branches_url":"https://api.github.com/repos/pymedusa/Medusa/branches{/branch}","tags_url":"https://api.github.com/repos/pymedusa/Medusa/tags","blobs_url":"https://api.github.com/repos/pymedusa/Medusa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pymedusa/Medusa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pymedusa/Medusa/git/refs{/sha}","trees_url":"https://api.github.com/repos/pymedusa/Medusa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pymedusa/Medusa/statuses/{sha}","languages_url":"https://api.github.com/repos/pymedusa/Medusa/languages","stargazers_url":"https://api.github.com/repos/pymedusa/Medusa/stargazers","contributors_url":"https://api.github.com/repos/pymedusa/Medusa/contributors","subscribers_url":"https://api.github.com/repos/pymedusa/Medusa/subscribers","subscription_url":"https://api.github.com/repos/pymedusa/Medusa/subscription","commits_url":"https://api.github.com/repos/pymedusa/Medusa/commits{/sha}","git_commits_url":"https://api.github.com/repos/pymedusa/Medusa/git/commits{/sha}","comments_url":"https://api.github.com/repos/pymedusa/Medusa/comments{/number}","issue_comment_url":"https://api.github.com/repos/pymedusa/Medusa/issues/comments{/number}","contents_url":"https://api.github.com/repos/pymedusa/Medusa/contents/{+path}","compare_url":"https://api.github.com/repos/pymedusa/Medusa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pymedusa/Medusa/merges","archive_url":"https://api.github.com/repos/pymedusa/Medusa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pymedusa/Medusa/downloads","issues_url":"https://api.github.com/repos/pymedusa/Medusa/issues{/number}","pulls_url":"https://api.github.com/repos/pymedusa/Medusa/pulls{/number}","milestones_url":"https://api.github.com/repos/pymedusa/Medusa/milestones{/number}","notifications_url":"https://api.github.com/repos/pymedusa/Medusa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pymedusa/Medusa/labels{/name}","releases_url":"https://api.github.com/repos/pymedusa/Medusa/releases{/id}","deployments_url":"https://api.github.com/repos/pymedusa/Medusa/deployments","created_at":"2016-02-23T06:02:11Z","updated_at":"2018-09-16T10:08:40Z","pushed_at":"2018-09-16T19:36:45Z","git_url":"git://github.com/pymedusa/Medusa.git","ssh_url":"git@github.com:pymedusa/Medusa.git","clone_url":"https://github.com/pymedusa/Medusa.git","svn_url":"https://github.com/pymedusa/Medusa","homepage":"https://pymedusa.com","size":99880,"stargazers_count":415,"watchers_count":415,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"archived":false,"open_issues_count":249,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":87,"open_issues":249,"watchers":415,"default_branch":"master"}},"base":{"label":"pymedusa:develop","ref":"develop","sha":"7597778ce0c19be4af039877127342eba7e4c316","user":{"login":"pymedusa","id":16712498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzEyNDk4","avatar_url":"https://avatars1.githubusercontent.com/u/16712498?v=4","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"repo":{"id":52334681,"node_id":"MDEwOlJlcG9zaXRvcnk1MjMzNDY4MQ==","name":"Medusa","full_name":"pymedusa/Medusa","private":false,"owner":{"login":"pymedusa","id":16712498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzEyNDk4","avatar_url":"https://avatars1.githubusercontent.com/u/16712498?v=4","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pymedusa/Medusa","description":"Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.","fork":false,"url":"https://api.github.com/repos/pymedusa/Medusa","forks_url":"https://api.github.com/repos/pymedusa/Medusa/forks","keys_url":"https://api.github.com/repos/pymedusa/Medusa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pymedusa/Medusa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pymedusa/Medusa/teams","hooks_url":"https://api.github.com/repos/pymedusa/Medusa/hooks","issue_events_url":"https://api.github.com/repos/pymedusa/Medusa/issues/events{/number}","events_url":"https://api.github.com/repos/pymedusa/Medusa/events","assignees_url":"https://api.github.com/repos/pymedusa/Medusa/assignees{/user}","branches_url":"https://api.github.com/repos/pymedusa/Medusa/branches{/branch}","tags_url":"https://api.github.com/repos/pymedusa/Medusa/tags","blobs_url":"https://api.github.com/repos/pymedusa/Medusa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pymedusa/Medusa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pymedusa/Medusa/git/refs{/sha}","trees_url":"https://api.github.com/repos/pymedusa/Medusa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pymedusa/Medusa/statuses/{sha}","languages_url":"https://api.github.com/repos/pymedusa/Medusa/languages","stargazers_url":"https://api.github.com/repos/pymedusa/Medusa/stargazers","contributors_url":"https://api.github.com/repos/pymedusa/Medusa/contributors","subscribers_url":"https://api.github.com/repos/pymedusa/Medusa/subscribers","subscription_url":"https://api.github.com/repos/pymedusa/Medusa/subscription","commits_url":"https://api.github.com/repos/pymedusa/Medusa/commits{/sha}","git_commits_url":"https://api.github.com/repos/pymedusa/Medusa/git/commits{/sha}","comments_url":"https://api.github.com/repos/pymedusa/Medusa/comments{/number}","issue_comment_url":"https://api.github.com/repos/pymedusa/Medusa/issues/comments{/number}","contents_url":"https://api.github.com/repos/pymedusa/Medusa/contents/{+path}","compare_url":"https://api.github.com/repos/pymedusa/Medusa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pymedusa/Medusa/merges","archive_url":"https://api.github.com/repos/pymedusa/Medusa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pymedusa/Medusa/downloads","issues_url":"https://api.github.com/repos/pymedusa/Medusa/issues{/number}","pulls_url":"https://api.github.com/repos/pymedusa/Medusa/pulls{/number}","milestones_url":"https://api.github.com/repos/pymedusa/Medusa/milestones{/number}","notifications_url":"https://api.github.com/repos/pymedusa/Medusa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pymedusa/Medusa/labels{/name}","releases_url":"https://api.github.com/repos/pymedusa/Medusa/releases{/id}","deployments_url":"https://api.github.com/repos/pymedusa/Medusa/deployments","created_at":"2016-02-23T06:02:11Z","updated_at":"2018-09-16T10:08:40Z","pushed_at":"2018-09-16T19:36:45Z","git_url":"git://github.com/pymedusa/Medusa.git","ssh_url":"git@github.com:pymedusa/Medusa.git","clone_url":"https://github.com/pymedusa/Medusa.git","svn_url":"https://github.com/pymedusa/Medusa","homepage":"https://pymedusa.com","size":99880,"stargazers_count":415,"watchers_count":415,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"archived":false,"open_issues_count":249,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":87,"open_issues":249,"watchers":415,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227"},"html":{"href":"https://github.com/pymedusa/Medusa/pull/5227"},"issue":{"href":"https://api.github.com/repos/pymedusa/Medusa/issues/5227"},"comments":{"href":"https://api.github.com/repos/pymedusa/Medusa/issues/5227/comments"},"review_comments":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227/comments"},"review_comment":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/5227/commits"},"statuses":{"href":"https://api.github.com/repos/pymedusa/Medusa/statuses/e95977de4dd946c229a5eefa4c8a2d22546c1063"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"medariox"}}