{"action":"opened","issue":{"url":"https://api.github.com/repos/kira-95/bpm/issues/4","repository_url":"https://api.github.com/repos/kira-95/bpm","labels_url":"https://api.github.com/repos/kira-95/bpm/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kira-95/bpm/issues/4/comments","events_url":"https://api.github.com/repos/kira-95/bpm/issues/4/events","html_url":"https://github.com/kira-95/bpm/issues/4","id":382016623,"node_id":"MDU6SXNzdWUzODIwMTY2MjM=","number":4,"title":"Encountered KeyError error on line 41 of generation.py","user":{"login":"xiaolim","id":33206939,"node_id":"MDQ6VXNlcjMzMjA2OTM5","avatar_url":"https://avatars3.githubusercontent.com/u/33206939?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaolim","html_url":"https://github.com/xiaolim","followers_url":"https://api.github.com/users/xiaolim/followers","following_url":"https://api.github.com/users/xiaolim/following{/other_user}","gists_url":"https://api.github.com/users/xiaolim/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaolim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaolim/subscriptions","organizations_url":"https://api.github.com/users/xiaolim/orgs","repos_url":"https://api.github.com/users/xiaolim/repos","events_url":"https://api.github.com/users/xiaolim/events{/privacy}","received_events_url":"https://api.github.com/users/xiaolim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T00:06:30Z","updated_at":"2018-11-19T00:06:30Z","closed_at":null,"author_association":"NONE","body":"Here's how to produce it:\r\n\r\n> Do you have a BPM account?\r\n> 0:\tYes\r\n> 1:\tNo\r\n> 0\r\n> Enter your BPM username: x\r\n> Please copy and paste your validation code from the browser: \r\n> AQDDSZM2_a5V6YWz3PAw_WDjqEJVwp4Rkxsd0JBzOeKfvd1nixBltgMzvZoaRzHUsnHWJK5ymx1T-33XtXQ7u2hcNNLS2rpVqeIyq_gbsP3GV6U26bY0nyiAE-hfVL6ImP2koRZzobtOHrCU57ODBS57SDzcG9-oK4J-X68VVlAZG5EBtswe5aCwDdqlvuzNo6MI-YoFE5SVFvkA-x2n0qpxLRPrgM7C4uFsnwT_mQqmnnDh30Z6dG1soQ-HOJeLISvdDlFQ56mKAfRoz_dn4HVFtFoyicUz4ACWMDqczHiMz6KG0J8a_WJl9Bw0gLqZ3PrWt4mMoceBXL_Z5FXndJZPtB8EzOrruRXog7wQhK1VWHZVWrQKH7snTrt_pAmHmJ97Q2yxQI-61KWmtp2KvyazjlpAvIJjoE7Y0JfgpMXs4Y-caQ6xByc9TSbFRDwWWjNXemqYkEtsc-Co6-KoykDQ7XvpLJ-CZFdzRkidLVOLEWXND7G7IsoIsJ8SYZB59xtME6w\r\n> Enter your genre preference: \r\n> 0: \t No Preference \r\n> 1: \t Rock \r\n> 2: \t Hip Hop \r\n> 3: \t Pop \r\n> 4: \t Dance/Electronic \r\n> 5: \t Latin \r\n> 6: \t Country \r\n> 7: \t R&B \r\n> Other\r\n> Please enter an integer value corresponding to the following genres: \r\n> Enter your genre preference: \r\n> 0: \t No Preference \r\n> 1: \t Rock \r\n> 2: \t Hip Hop \r\n> 3: \t Pop \r\n> 4: \t Dance/Electronic \r\n> 5: \t Latin \r\n> 6: \t Country \r\n> 7: \t R&B \r\n> 0\r\n> \r\n> Enter the length of your workout in minutes: \r\n> 10\r\n> \r\n> Enter the start speed of your workout in steps per minute (SPM): \r\n> 100\r\n> \r\n> Enter the end speed of your workout in steps per minute (SPM): \r\n> 50\r\n> \r\n> Scanning library\r\n> Traceback (most recent call last):\r\n>   File \"bpm.py\", line 37, in <module>\r\n>     main()\r\n>   File \"bpm.py\", line 28, in main\r\n>     playlist = run_gen(token, genre, length, start_speed, end_speed)\r\n>   File \"/Users/limxiaoyu/Downloads/bpm-master/src/generation.py\", line 151, in run_gen\r\n>     library = scan_library(spotify, genre, start_speed, end_speed)\r\n>   File \"/Users/limxiaoyu/Downloads/bpm-master/src/generation.py\", line 64, in scan_library\r\n>     if not has_genre(spotify, track, genre):\r\n>   File \"/Users/limxiaoyu/Downloads/bpm-master/src/generation.py\", line 41, in has_genre\r\n>     target_genre = GENRES[genre]\r\n> KeyError: 0\r\n"}}
{"actor":{"display_login":"xiaolim"}}