{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1213","repository_url":"https://api.github.com/repos/Hammerspoon/hammerspoon","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1213/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1213/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1213/events","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/1213","id":203291746,"number":1213,"title":"Add getDuration() to itunes and spotify extensions.","user":{"login":"drn","id":885841,"avatar_url":"https://avatars.githubusercontent.com/u/885841?v=3","gravatar_id":"","url":"https://api.github.com/users/drn","html_url":"https://github.com/drn","followers_url":"https://api.github.com/users/drn/followers","following_url":"https://api.github.com/users/drn/following{/other_user}","gists_url":"https://api.github.com/users/drn/gists{/gist_id}","starred_url":"https://api.github.com/users/drn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drn/subscriptions","organizations_url":"https://api.github.com/users/drn/orgs","repos_url":"https://api.github.com/users/drn/repos","events_url":"https://api.github.com/users/drn/events{/privacy}","received_events_url":"https://api.github.com/users/drn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-26T04:45:37Z","updated_at":"2017-01-26T20:11:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/1213","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/1213","diff_url":"https://github.com/Hammerspoon/hammerspoon/pull/1213.diff","patch_url":"https://github.com/Hammerspoon/hammerspoon/pull/1213.patch"},"body":"I've been manually triggering applescript tells when pulling current duration in some of my scripts. I thought it would be useful as part of the extensions.\r\n\r\nOne oddity was that when testing, iTunes returns duration in seconds while Spotify returns duration in milliseconds even though the Spotify.sdef defines `duration (integer, r/o) : The length of the track in seconds."},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/275499769","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/1213#issuecomment-275499769","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1213","id":275499769,"user":{"login":"cmsj","id":353427,"avatar_url":"https://avatars.githubusercontent.com/u/353427?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsj","html_url":"https://github.com/cmsj","followers_url":"https://api.github.com/users/cmsj/followers","following_url":"https://api.github.com/users/cmsj/following{/other_user}","gists_url":"https://api.github.com/users/cmsj/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsj/subscriptions","organizations_url":"https://api.github.com/users/cmsj/orgs","repos_url":"https://api.github.com/users/cmsj/repos","events_url":"https://api.github.com/users/cmsj/events{/privacy}","received_events_url":"https://api.github.com/users/cmsj/received_events","type":"User","site_admin":false},"created_at":"2017-01-26T20:11:48Z","updated_at":"2017-01-26T20:11:48Z","body":"@aldur could you check if Deezer also supports this AppleScript interface? If so we should add it there too."}}
{"actor":{"display_login":"cmsj"}}