{"action":"created","issue":{"url":"https://api.github.com/repos/FichteFoll/discordrp-mpris/issues/4","repository_url":"https://api.github.com/repos/FichteFoll/discordrp-mpris","labels_url":"https://api.github.com/repos/FichteFoll/discordrp-mpris/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/FichteFoll/discordrp-mpris/issues/4/comments","events_url":"https://api.github.com/repos/FichteFoll/discordrp-mpris/issues/4/events","html_url":"https://github.com/FichteFoll/discordrp-mpris/issues/4","id":328822359,"node_id":"MDU6SXNzdWUzMjg4MjIzNTk=","number":4,"title":"Problem when using mps-youtube and question about Spotify.","user":{"login":"brunibunny","id":33870163,"node_id":"MDQ6VXNlcjMzODcwMTYz","avatar_url":"https://avatars1.githubusercontent.com/u/33870163?v=4","gravatar_id":"","url":"https://api.github.com/users/brunibunny","html_url":"https://github.com/brunibunny","followers_url":"https://api.github.com/users/brunibunny/followers","following_url":"https://api.github.com/users/brunibunny/following{/other_user}","gists_url":"https://api.github.com/users/brunibunny/gists{/gist_id}","starred_url":"https://api.github.com/users/brunibunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunibunny/subscriptions","organizations_url":"https://api.github.com/users/brunibunny/orgs","repos_url":"https://api.github.com/users/brunibunny/repos","events_url":"https://api.github.com/users/brunibunny/events{/privacy}","received_events_url":"https://api.github.com/users/brunibunny/received_events","type":"User","site_admin":false},"labels":[{"id":904121528,"node_id":"MDU6TGFiZWw5MDQxMjE1Mjg=","url":"https://api.github.com/repos/FichteFoll/discordrp-mpris/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-03T11:54:08Z","updated_at":"2018-06-05T02:18:28Z","closed_at":null,"author_association":"NONE","body":"Hey man, great utility. But I'm afraid I'm having some issues with it.\r\nWhen using [mps-youtube](https://github.com/mps-youtube/mps-youtube), which does support mpris2, discordrp-mpris exits with this error:\r\n\r\n> [nipkow@nipkow-ln ~]$ discordrp-mpris \r\nINFO:discordrp_mpris.__main__:Connected to Discord client\r\nWARNING:discord_rpc.async:closing connection\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/discordrp-mpris\", line 11, in <module>\r\n    load_entry_point('discordrp-mpris==0.1.1', 'console_scripts', 'discordrp-mpris')()\r\n  File \"/usr/lib/python3.6/site-packages/discordrp_mpris/__main__.py\", line 236, in main\r\n    loop.run_until_complete(wait_task)\r\n  File \"/usr/lib/python3.6/asyncio/base_events.py\", line 468, in run_until_complete\r\n    return future.result()\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 358, in wait_for\r\n    return fut.result()\r\n  File \"/usr/lib/python3.6/site-packages/discordrp_mpris/__main__.py\", line 230, in main\r\n    loop.run_until_complete(main_task)\r\n  File \"/usr/lib/python3.6/asyncio/base_events.py\", line 468, in run_until_complete\r\n    return future.result()\r\n  File \"/usr/lib/python3.6/site-packages/discordrp_mpris/__main__.py\", line 222, in main_async\r\n    await instance.run()\r\n  File \"/usr/lib/python3.6/site-packages/discordrp_mpris/__main__.py\", line 59, in run\r\n    await self.tick()\r\n  File \"/usr/lib/python3.6/site-packages/discordrp_mpris/__main__.py\", line 69, in tick\r\n    player = await self.find_active_player()\r\n  File \"/usr/lib/python3.6/site-packages/discordrp_mpris/__main__.py\", line 148, in find_active_player\r\n    groups = await self.group_players(players)\r\n  File \"/usr/lib/python3.6/site-packages/discordrp_mpris/__main__.py\", line 192, in group_players\r\n    state = ampris2.PlaybackStatus(await p.player.PlaybackStatus)  # type: ignore\r\nAttributeError: 'org.mpris.MediaPlayer2.Player' object has no attribute 'PlaybackStatus'\r\n\r\nNot sure if there is anything wrong with mps-youtube's mpris implementation. It seems to work fine with other applications such as Cinnamon's \"audio/sound\" controller. \r\n\r\nAlso, would it be possible to \"disable\" discordrp-mpris automatically when Spotify is running? It breaks Discord's integration with Spotify, preventing me from listening songs with friend and such."},"comment":{"url":"https://api.github.com/repos/FichteFoll/discordrp-mpris/issues/comments/394559026","html_url":"https://github.com/FichteFoll/discordrp-mpris/issues/4#issuecomment-394559026","issue_url":"https://api.github.com/repos/FichteFoll/discordrp-mpris/issues/4","id":394559026,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDU1OTAyNg==","user":{"login":"brunibunny","id":33870163,"node_id":"MDQ6VXNlcjMzODcwMTYz","avatar_url":"https://avatars1.githubusercontent.com/u/33870163?v=4","gravatar_id":"","url":"https://api.github.com/users/brunibunny","html_url":"https://github.com/brunibunny","followers_url":"https://api.github.com/users/brunibunny/followers","following_url":"https://api.github.com/users/brunibunny/following{/other_user}","gists_url":"https://api.github.com/users/brunibunny/gists{/gist_id}","starred_url":"https://api.github.com/users/brunibunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunibunny/subscriptions","organizations_url":"https://api.github.com/users/brunibunny/orgs","repos_url":"https://api.github.com/users/brunibunny/repos","events_url":"https://api.github.com/users/brunibunny/events{/privacy}","received_events_url":"https://api.github.com/users/brunibunny/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T02:18:28Z","updated_at":"2018-06-05T02:18:28Z","author_association":"NONE","body":"Awesome, man. I will follow the upstream issue you created as well. Thank you so much for looking into this!"}}
{"actor":{"display_login":"brunibunny"}}