{"action":"created","issue":{"url":"https://api.github.com/repos/Diaoul/subliminal/issues/458","labels_url":"https://api.github.com/repos/Diaoul/subliminal/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/Diaoul/subliminal/issues/458/comments","events_url":"https://api.github.com/repos/Diaoul/subliminal/issues/458/events","html_url":"https://github.com/Diaoul/subliminal/issues/458","id":93272094,"number":458,"title":"Use click for CLI","user":{"login":"Diaoul","id":319220,"avatar_url":"https://avatars.githubusercontent.com/u/319220?v=3","gravatar_id":"","url":"https://api.github.com/users/Diaoul","html_url":"https://github.com/Diaoul","followers_url":"https://api.github.com/users/Diaoul/followers","following_url":"https://api.github.com/users/Diaoul/following{/other_user}","gists_url":"https://api.github.com/users/Diaoul/gists{/gist_id}","starred_url":"https://api.github.com/users/Diaoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diaoul/subscriptions","organizations_url":"https://api.github.com/users/Diaoul/orgs","repos_url":"https://api.github.com/users/Diaoul/repos","events_url":"https://api.github.com/users/Diaoul/events{/privacy}","received_events_url":"https://api.github.com/users/Diaoul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Diaoul/subliminal/labels/enhancement","name":"enhancement","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Diaoul/subliminal/milestones/2","html_url":"https://github.com/Diaoul/subliminal/milestones/1.0","labels_url":"https://api.github.com/repos/Diaoul/subliminal/milestones/2/labels","id":1194737,"number":2,"title":"1.0","description":"","creator":{"login":"Diaoul","id":319220,"avatar_url":"https://avatars.githubusercontent.com/u/319220?v=3","gravatar_id":"","url":"https://api.github.com/users/Diaoul","html_url":"https://github.com/Diaoul","followers_url":"https://api.github.com/users/Diaoul/followers","following_url":"https://api.github.com/users/Diaoul/following{/other_user}","gists_url":"https://api.github.com/users/Diaoul/gists{/gist_id}","starred_url":"https://api.github.com/users/Diaoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diaoul/subscriptions","organizations_url":"https://api.github.com/users/Diaoul/orgs","repos_url":"https://api.github.com/users/Diaoul/repos","events_url":"https://api.github.com/users/Diaoul/events{/privacy}","received_events_url":"https://api.github.com/users/Diaoul/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2015-07-06T12:54:51Z","updated_at":"2015-07-13T13:15:28Z","due_on":"2015-07-11T22:00:00Z","closed_at":null},"comments":11,"created_at":"2015-07-06T12:54:30Z","updated_at":"2015-07-13T14:09:41Z","closed_at":null,"body":"http://click.pocoo.org/4/"},"comment":{"url":"https://api.github.com/repos/Diaoul/subliminal/issues/comments/120939878","html_url":"https://github.com/Diaoul/subliminal/issues/458#issuecomment-120939878","issue_url":"https://api.github.com/repos/Diaoul/subliminal/issues/458","id":120939878,"user":{"login":"caronc","id":850374,"avatar_url":"https://avatars.githubusercontent.com/u/850374?v=3","gravatar_id":"","url":"https://api.github.com/users/caronc","html_url":"https://github.com/caronc","followers_url":"https://api.github.com/users/caronc/followers","following_url":"https://api.github.com/users/caronc/following{/other_user}","gists_url":"https://api.github.com/users/caronc/gists{/gist_id}","starred_url":"https://api.github.com/users/caronc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caronc/subscriptions","organizations_url":"https://api.github.com/users/caronc/orgs","repos_url":"https://api.github.com/users/caronc/repos","events_url":"https://api.github.com/users/caronc/events{/privacy}","received_events_url":"https://api.github.com/users/caronc/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T14:09:41Z","updated_at":"2015-07-13T14:09:41Z","body":"Scoring is probable the least of the overhead of the entire Subliminal processing.  You're calling Guessit against everything anyway to determine if the video/show matches the query anyway. Why not continue to calculate it then and there anyway? Just don't filter the results unless you want scoring in play.\r\n\r\nHonestly, scoring things separately (and then intentionally choosing not to score your results) will shave at most 0.03s off the processing time (estimations of course).\r\n```python\r\n# Keep it simple and built in\r\nif use_scoring:\r\n    for video, subtitles in [ (v,s) for (v,s) in \\\r\n           list_subtitles(...) if s.score > user_defined_score ]:\r\n            # this sub is good\r\n```"}}