{"action":"created","issue":{"url":"https://api.github.com/repos/pkkid/python-plexapi/issues/311","repository_url":"https://api.github.com/repos/pkkid/python-plexapi","labels_url":"https://api.github.com/repos/pkkid/python-plexapi/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/pkkid/python-plexapi/issues/311/comments","events_url":"https://api.github.com/repos/pkkid/python-plexapi/issues/311/events","html_url":"https://github.com/pkkid/python-plexapi/issues/311","id":373259414,"node_id":"MDU6SXNzdWUzNzMyNTk0MTQ=","number":311,"title":"Help getting media currently playing and playhead time","user":{"login":"russellaugust","id":1045096,"node_id":"MDQ6VXNlcjEwNDUwOTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1045096?v=4","gravatar_id":"","url":"https://api.github.com/users/russellaugust","html_url":"https://github.com/russellaugust","followers_url":"https://api.github.com/users/russellaugust/followers","following_url":"https://api.github.com/users/russellaugust/following{/other_user}","gists_url":"https://api.github.com/users/russellaugust/gists{/gist_id}","starred_url":"https://api.github.com/users/russellaugust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russellaugust/subscriptions","organizations_url":"https://api.github.com/users/russellaugust/orgs","repos_url":"https://api.github.com/users/russellaugust/repos","events_url":"https://api.github.com/users/russellaugust/events{/privacy}","received_events_url":"https://api.github.com/users/russellaugust/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-24T00:45:11Z","updated_at":"2018-10-24T12:50:00Z","closed_at":null,"author_association":"NONE","body":"I've been reading through the documentation and I can't seem to find a clear way to check what media is playing and the current time the media is at.  I had done it a few years ago by manually parsing the session XML, but I can't find a way to do it here."},"comment":{"url":"https://api.github.com/repos/pkkid/python-plexapi/issues/comments/432641497","html_url":"https://github.com/pkkid/python-plexapi/issues/311#issuecomment-432641497","issue_url":"https://api.github.com/repos/pkkid/python-plexapi/issues/311","id":432641497,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjY0MTQ5Nw==","user":{"login":"pkkid","id":435619,"node_id":"MDQ6VXNlcjQzNTYxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/435619?v=4","gravatar_id":"","url":"https://api.github.com/users/pkkid","html_url":"https://github.com/pkkid","followers_url":"https://api.github.com/users/pkkid/followers","following_url":"https://api.github.com/users/pkkid/following{/other_user}","gists_url":"https://api.github.com/users/pkkid/gists{/gist_id}","starred_url":"https://api.github.com/users/pkkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkkid/subscriptions","organizations_url":"https://api.github.com/users/pkkid/orgs","repos_url":"https://api.github.com/users/pkkid/repos","events_url":"https://api.github.com/users/pkkid/events{/privacy}","received_events_url":"https://api.github.com/users/pkkid/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T12:50:00Z","updated_at":"2018-10-24T12:50:00Z","author_association":"OWNER","body":"Take a look at [PlexServer.sessions()](https://python-plexapi.readthedocs.io/en/latest/modules/server.html#plexapi.server.PlexServer.sessions).\r\n\r\nUntested, but I think this would be the code.\r\n```python\r\nfrom plexapi.myplex import MyPlexAccount\r\naccount = MyPlexAccount('<USERNAME>', '<PASSWORD>')\r\nplex = account.resource('<SERVERNAME>').connect()  # returns a PlexServer instance\r\nprint(plex.sessions())\r\n```"}}
{"actor":{"display_login":"pkkid"}}