{"action":"created","comment":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/22709000","id":22709000,"diff_hunk":"@@ -74,54 +94,76 @@ def on_task_filter(self, task, config):\n             #logging.getLogger('imdb_lookup').setLevel(logging.WARNING)\n \n             # scan through\n-\n-            # TODO: add also video files?\n-            for item in folder.walkdirs(errors='ignore'):\n-                if item.name.lower() in self.skip:\n-                    continue\n-                count_dirs += 1\n-\n-                movie = get_plugin_by_name('parsing').instance.parse_movie(item)\n-\n-                try:\n-                    imdb_id = imdb_lookup.imdb_id_lookup(movie_title=movie.name,\n-                                                         raw_title=item.name,\n-                                                         session=task.session)\n-                    if imdb_id in path_ids:\n-                        log.trace('duplicate %s' % item)\n+            for root, dirs, files in os.walk(folder):\n+                for item in eval(config['type']):\n+                    if config['type'] == 'files' and not re.search(self.pattern, item, re.IGNORECASE):","path":"flexget/plugins/filter/exists_movie.py","position":125,"original_position":125,"commit_id":"d27b97ab8ab05a13e9cc576c46a8221f3c7dd3fc","original_commit_id":"d27b97ab8ab05a13e9cc576c46a8221f3c7dd3fc","user":{"login":"paranoidi","id":504877,"avatar_url":"https://avatars.githubusercontent.com/u/504877?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoidi","html_url":"https://github.com/paranoidi","followers_url":"https://api.github.com/users/paranoidi/followers","following_url":"https://api.github.com/users/paranoidi/following{/other_user}","gists_url":"https://api.github.com/users/paranoidi/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoidi/subscriptions","organizations_url":"https://api.github.com/users/paranoidi/orgs","repos_url":"https://api.github.com/users/paranoidi/repos","events_url":"https://api.github.com/users/paranoidi/events{/privacy}","received_events_url":"https://api.github.com/users/paranoidi/received_events","type":"User","site_admin":false},"body":"Since this is in the loop the self.pattern should be precompiled (a lot faster when using same regexp many times).","created_at":"2015-01-09T10:21:01Z","updated_at":"2015-01-09T10:21:01Z","html_url":"https://github.com/Flexget/Flexget/pull/420#discussion_r22709000","pull_request_url":"https://api.github.com/repos/Flexget/Flexget/pulls/420","_links":{"self":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/22709000"},"html":{"href":"https://github.com/Flexget/Flexget/pull/420#discussion_r22709000"},"pull_request":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/420"}}},"pull_request":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/420","id":27083798,"html_url":"https://github.com/Flexget/Flexget/pull/420","diff_url":"https://github.com/Flexget/Flexget/pull/420.diff","patch_url":"https://github.com/Flexget/Flexget/pull/420.patch","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/420","number":420,"state":"open","locked":false,"title":"Scan for files and dirs, and allow different qualities.","user":{"login":"Ram-Z","id":1587259,"avatar_url":"https://avatars.githubusercontent.com/u/1587259?v=3","gravatar_id":"","url":"https://api.github.com/users/Ram-Z","html_url":"https://github.com/Ram-Z","followers_url":"https://api.github.com/users/Ram-Z/followers","following_url":"https://api.github.com/users/Ram-Z/following{/other_user}","gists_url":"https://api.github.com/users/Ram-Z/gists{/gist_id}","starred_url":"https://api.github.com/users/Ram-Z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ram-Z/subscriptions","organizations_url":"https://api.github.com/users/Ram-Z/orgs","repos_url":"https://api.github.com/users/Ram-Z/repos","events_url":"https://api.github.com/users/Ram-Z/events{/privacy}","received_events_url":"https://api.github.com/users/Ram-Z/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-09T07:19:29Z","updated_at":"2015-01-09T10:21:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfe232410a18660d5c2e7404d4d133a51296672c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Flexget/Flexget/pulls/420/commits","review_comments_url":"https://api.github.com/repos/Flexget/Flexget/pulls/420/comments","review_comment_url":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/420/comments","statuses_url":"https://api.github.com/repos/Flexget/Flexget/statuses/d27b97ab8ab05a13e9cc576c46a8221f3c7dd3fc","head":{"label":"Ram-Z:exits_movies","ref":"exits_movies","sha":"d27b97ab8ab05a13e9cc576c46a8221f3c7dd3fc","user":{"login":"Ram-Z","id":1587259,"avatar_url":"https://avatars.githubusercontent.com/u/1587259?v=3","gravatar_id":"","url":"https://api.github.com/users/Ram-Z","html_url":"https://github.com/Ram-Z","followers_url":"https://api.github.com/users/Ram-Z/followers","following_url":"https://api.github.com/users/Ram-Z/following{/other_user}","gists_url":"https://api.github.com/users/Ram-Z/gists{/gist_id}","starred_url":"https://api.github.com/users/Ram-Z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ram-Z/subscriptions","organizations_url":"https://api.github.com/users/Ram-Z/orgs","repos_url":"https://api.github.com/users/Ram-Z/repos","events_url":"https://api.github.com/users/Ram-Z/events{/privacy}","received_events_url":"https://api.github.com/users/Ram-Z/received_events","type":"User","site_admin":false},"repo":{"id":28797985,"name":"Flexget","full_name":"Ram-Z/Flexget","owner":{"login":"Ram-Z","id":1587259,"avatar_url":"https://avatars.githubusercontent.com/u/1587259?v=3","gravatar_id":"","url":"https://api.github.com/users/Ram-Z","html_url":"https://github.com/Ram-Z","followers_url":"https://api.github.com/users/Ram-Z/followers","following_url":"https://api.github.com/users/Ram-Z/following{/other_user}","gists_url":"https://api.github.com/users/Ram-Z/gists{/gist_id}","starred_url":"https://api.github.com/users/Ram-Z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ram-Z/subscriptions","organizations_url":"https://api.github.com/users/Ram-Z/orgs","repos_url":"https://api.github.com/users/Ram-Z/repos","events_url":"https://api.github.com/users/Ram-Z/events{/privacy}","received_events_url":"https://api.github.com/users/Ram-Z/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ram-Z/Flexget","description":"The official FlexGet repository. Issue Tracker: http://flexget.com/report Forum: http://discuss.flexget.com","fork":true,"url":"https://api.github.com/repos/Ram-Z/Flexget","forks_url":"https://api.github.com/repos/Ram-Z/Flexget/forks","keys_url":"https://api.github.com/repos/Ram-Z/Flexget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ram-Z/Flexget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ram-Z/Flexget/teams","hooks_url":"https://api.github.com/repos/Ram-Z/Flexget/hooks","issue_events_url":"https://api.github.com/repos/Ram-Z/Flexget/issues/events{/number}","events_url":"https://api.github.com/repos/Ram-Z/Flexget/events","assignees_url":"https://api.github.com/repos/Ram-Z/Flexget/assignees{/user}","branches_url":"https://api.github.com/repos/Ram-Z/Flexget/branches{/branch}","tags_url":"https://api.github.com/repos/Ram-Z/Flexget/tags","blobs_url":"https://api.github.com/repos/Ram-Z/Flexget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ram-Z/Flexget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ram-Z/Flexget/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ram-Z/Flexget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ram-Z/Flexget/statuses/{sha}","languages_url":"https://api.github.com/repos/Ram-Z/Flexget/languages","stargazers_url":"https://api.github.com/repos/Ram-Z/Flexget/stargazers","contributors_url":"https://api.github.com/repos/Ram-Z/Flexget/contributors","subscribers_url":"https://api.github.com/repos/Ram-Z/Flexget/subscribers","subscription_url":"https://api.github.com/repos/Ram-Z/Flexget/subscription","commits_url":"https://api.github.com/repos/Ram-Z/Flexget/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ram-Z/Flexget/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ram-Z/Flexget/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ram-Z/Flexget/issues/comments/{number}","contents_url":"https://api.github.com/repos/Ram-Z/Flexget/contents/{+path}","compare_url":"https://api.github.com/repos/Ram-Z/Flexget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ram-Z/Flexget/merges","archive_url":"https://api.github.com/repos/Ram-Z/Flexget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ram-Z/Flexget/downloads","issues_url":"https://api.github.com/repos/Ram-Z/Flexget/issues{/number}","pulls_url":"https://api.github.com/repos/Ram-Z/Flexget/pulls{/number}","milestones_url":"https://api.github.com/repos/Ram-Z/Flexget/milestones{/number}","notifications_url":"https://api.github.com/repos/Ram-Z/Flexget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ram-Z/Flexget/labels{/name}","releases_url":"https://api.github.com/repos/Ram-Z/Flexget/releases{/id}","created_at":"2015-01-05T04:51:27Z","updated_at":"2015-01-05T04:51:31Z","pushed_at":"2015-01-09T07:19:02Z","git_url":"git://github.com/Ram-Z/Flexget.git","ssh_url":"git@github.com:Ram-Z/Flexget.git","clone_url":"https://github.com/Ram-Z/Flexget.git","svn_url":"https://github.com/Ram-Z/Flexget","homepage":"http://www.flexget.com","size":19833,"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":"56d275831d6beada4c7d81602cf7c2739f450e03","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. Issue Tracker: http://flexget.com/report Forum: http://discuss.flexget.com","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}","created_at":"2011-03-22T19:33:44Z","updated_at":"2015-01-09T07:12:28Z","pushed_at":"2015-01-09T07:12:28Z","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":42565,"stargazers_count":275,"watchers_count":275,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":191,"mirror_url":null,"open_issues_count":53,"forks":191,"open_issues":53,"watchers":275,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/420"},"html":{"href":"https://github.com/Flexget/Flexget/pull/420"},"issue":{"href":"https://api.github.com/repos/Flexget/Flexget/issues/420"},"comments":{"href":"https://api.github.com/repos/Flexget/Flexget/issues/420/comments"},"review_comments":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/420/comments"},"review_comment":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/420/commits"},"statuses":{"href":"https://api.github.com/repos/Flexget/Flexget/statuses/d27b97ab8ab05a13e9cc576c46a8221f3c7dd3fc"}}}}