{"action":"created","issue":{"url":"https://api.github.com/repos/Ivshti/multipass-torrent/issues/7","labels_url":"https://api.github.com/repos/Ivshti/multipass-torrent/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Ivshti/multipass-torrent/issues/7/comments","events_url":"https://api.github.com/repos/Ivshti/multipass-torrent/issues/7/events","html_url":"https://github.com/Ivshti/multipass-torrent/issues/7","id":104509936,"number":7,"title":"Preference system similar to Stremio's in lib/db","user":{"login":"Ivshti","id":1247629,"avatar_url":"https://avatars.githubusercontent.com/u/1247629?v=3","gravatar_id":"","url":"https://api.github.com/users/Ivshti","html_url":"https://github.com/Ivshti","followers_url":"https://api.github.com/users/Ivshti/followers","following_url":"https://api.github.com/users/Ivshti/following{/other_user}","gists_url":"https://api.github.com/users/Ivshti/gists{/gist_id}","starred_url":"https://api.github.com/users/Ivshti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ivshti/subscriptions","organizations_url":"https://api.github.com/users/Ivshti/orgs","repos_url":"https://api.github.com/users/Ivshti/repos","events_url":"https://api.github.com/users/Ivshti/events{/privacy}","received_events_url":"https://api.github.com/users/Ivshti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-02T15:34:45Z","updated_at":"2015-09-02T15:47:06Z","closed_at":null,"body":"It would work like\r\n```javascript\r\ndb.findOne({  imdb_id: ...},[\r\n   { tag: \"hd\", min_avail: 2 } // prefer HD torrents if they have at least 2 availability\r\n], function(err, torrent) { /* receive torrent */ })\r\n```\r\n\r\nIt must be default behaviour to prefer 720p and 1080p torrents if their availability is at least 2"},"comment":{"url":"https://api.github.com/repos/Ivshti/multipass-torrent/issues/comments/137139651","html_url":"https://github.com/Ivshti/multipass-torrent/issues/7#issuecomment-137139651","issue_url":"https://api.github.com/repos/Ivshti/multipass-torrent/issues/7","id":137139651,"user":{"login":"jaruba","id":1777923,"avatar_url":"https://avatars.githubusercontent.com/u/1777923?v=3","gravatar_id":"","url":"https://api.github.com/users/jaruba","html_url":"https://github.com/jaruba","followers_url":"https://api.github.com/users/jaruba/followers","following_url":"https://api.github.com/users/jaruba/following{/other_user}","gists_url":"https://api.github.com/users/jaruba/gists{/gist_id}","starred_url":"https://api.github.com/users/jaruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaruba/subscriptions","organizations_url":"https://api.github.com/users/jaruba/orgs","repos_url":"https://api.github.com/users/jaruba/repos","events_url":"https://api.github.com/users/jaruba/events{/privacy}","received_events_url":"https://api.github.com/users/jaruba/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T15:47:06Z","updated_at":"2015-09-02T15:47:06Z","body":"obviously.. :8ball: "}}