{"action":"created","issue":{"url":"https://api.github.com/repos/christopher-dG/pmcli/issues/14","repository_url":"https://api.github.com/repos/christopher-dG/pmcli","labels_url":"https://api.github.com/repos/christopher-dG/pmcli/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/christopher-dG/pmcli/issues/14/comments","events_url":"https://api.github.com/repos/christopher-dG/pmcli/issues/14/events","html_url":"https://github.com/christopher-dG/pmcli/issues/14","id":210839238,"number":14,"title":"Issue with get_device_id.py","user":{"login":"noahl98","id":6190630,"avatar_url":"https://avatars2.githubusercontent.com/u/6190630?v=3","gravatar_id":"","url":"https://api.github.com/users/noahl98","html_url":"https://github.com/noahl98","followers_url":"https://api.github.com/users/noahl98/followers","following_url":"https://api.github.com/users/noahl98/following{/other_user}","gists_url":"https://api.github.com/users/noahl98/gists{/gist_id}","starred_url":"https://api.github.com/users/noahl98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahl98/subscriptions","organizations_url":"https://api.github.com/users/noahl98/orgs","repos_url":"https://api.github.com/users/noahl98/repos","events_url":"https://api.github.com/users/noahl98/events{/privacy}","received_events_url":"https://api.github.com/users/noahl98/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-28T16:32:20Z","updated_at":"2017-03-02T14:28:06Z","closed_at":"2017-03-02T14:28:06Z","body":"First off, thanks for writing this cli for google play music. I've been looking for one for a while and haven't' been able to find a good one before I stumbled upon this repo. \r\n\r\nNow to the issue. I tried to use the `script/get_device_id.py` to get a list of devices registered with my google account but when I ran the script (with proper email and app specific passwd) nothing was printed out. \r\n\r\nI added a print statement to print out the devices object and got this as output\r\n```\r\n[{'kind': 'sj#devicemanagementinfo', 'id': 'removed', 'friendlyName': 'Google Play Music for Chrome on Windows', 'type': 'DESKTOP_APP', 'lastAccessedTimeMs': '1488256354344'}, {'kind': 'sj#devicemanagementinfo', 'id': 'removed', 'friendlyName': 'Verizon Samsung SM-N910V', 'type': 'ANDROID', 'lastAccessedTimeMs': '1488227936743'}, {'kind': 'sj#devicemanagementinfo', 'id': 'removed', 'friendlyName': 'Verizon Samsung SM-N910V', 'type': 'ANDROID', 'lastAccessedTimeMs': '1481225985805', 'smartPhone': False}]\r\n```\r\n\r\nClearly there are registered devices so I believe there is an issue with this for loop:\r\n```\r\nfor i, device in enumerate([d for d in devices if d['kind'] in (u'ANDROID', u'IOS')]):\r\n            id = device['id']\r\n            print('%d: %s' % (i + 1, id[2:]if id.startswith('0x') else id))\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/christopher-dG/pmcli/issues/comments/283667402","html_url":"https://github.com/christopher-dG/pmcli/issues/14#issuecomment-283667402","issue_url":"https://api.github.com/repos/christopher-dG/pmcli/issues/14","id":283667402,"user":{"login":"noahl98","id":6190630,"avatar_url":"https://avatars2.githubusercontent.com/u/6190630?v=3","gravatar_id":"","url":"https://api.github.com/users/noahl98","html_url":"https://github.com/noahl98","followers_url":"https://api.github.com/users/noahl98/followers","following_url":"https://api.github.com/users/noahl98/following{/other_user}","gists_url":"https://api.github.com/users/noahl98/gists{/gist_id}","starred_url":"https://api.github.com/users/noahl98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahl98/subscriptions","organizations_url":"https://api.github.com/users/noahl98/orgs","repos_url":"https://api.github.com/users/noahl98/repos","events_url":"https://api.github.com/users/noahl98/events{/privacy}","received_events_url":"https://api.github.com/users/noahl98/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T14:28:05Z","updated_at":"2017-03-02T14:28:05Z","body":"the script in develop does work! thanks!"}}
{"actor":{"display_login":"noahl98"}}