{"action":"created","issue":{"url":"https://api.github.com/repos/Arkq/cmusfm/issues/3","labels_url":"https://api.github.com/repos/Arkq/cmusfm/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Arkq/cmusfm/issues/3/comments","events_url":"https://api.github.com/repos/Arkq/cmusfm/issues/3/events","html_url":"https://github.com/Arkq/cmusfm/issues/3","id":67798017,"number":3,"title":"cmusfm server process will not start if resume=true in cmus","user":{"login":"icesoldier","id":5217170,"avatar_url":"https://avatars.githubusercontent.com/u/5217170?v=3","gravatar_id":"","url":"https://api.github.com/users/icesoldier","html_url":"https://github.com/icesoldier","followers_url":"https://api.github.com/users/icesoldier/followers","following_url":"https://api.github.com/users/icesoldier/following{/other_user}","gists_url":"https://api.github.com/users/icesoldier/gists{/gist_id}","starred_url":"https://api.github.com/users/icesoldier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icesoldier/subscriptions","organizations_url":"https://api.github.com/users/icesoldier/orgs","repos_url":"https://api.github.com/users/icesoldier/repos","events_url":"https://api.github.com/users/icesoldier/events{/privacy}","received_events_url":"https://api.github.com/users/icesoldier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Arkq/cmusfm/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-11T15:14:16Z","updated_at":"2015-04-12T16:02:21Z","closed_at":"2015-04-12T15:59:25Z","body":"Currently it looks like cmusfm will only start its server process if it receives a status update that doesn't include a filename of some kind. However, if the \"resume\" setting is set in cmus, it will send a \"paused\" status on launch with the file that was playing when cmus was closed last. Because of this, upon a reboot or when the cmusfm server process is killed, no submission will be sent or even cached.\r\n\r\nI currently have a workaround set up involving using a [wrapper script][1] that will start cmusfm with a fake stopped status if it's not running prior to running cmusfm with the proper status update, and pointing cmus' status_display_program at that script.\r\n\r\n[1]: https://gist.github.com/icesoldier/5bcfb86276417c900060"},"comment":{"url":"https://api.github.com/repos/Arkq/cmusfm/issues/comments/92083545","html_url":"https://github.com/Arkq/cmusfm/issues/3#issuecomment-92083545","issue_url":"https://api.github.com/repos/Arkq/cmusfm/issues/3","id":92083545,"user":{"login":"Arkq","id":6979798,"avatar_url":"https://avatars.githubusercontent.com/u/6979798?v=3","gravatar_id":"","url":"https://api.github.com/users/Arkq","html_url":"https://github.com/Arkq","followers_url":"https://api.github.com/users/Arkq/followers","following_url":"https://api.github.com/users/Arkq/following{/other_user}","gists_url":"https://api.github.com/users/Arkq/gists{/gist_id}","starred_url":"https://api.github.com/users/Arkq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arkq/subscriptions","organizations_url":"https://api.github.com/users/Arkq/orgs","repos_url":"https://api.github.com/users/Arkq/repos","events_url":"https://api.github.com/users/Arkq/events{/privacy}","received_events_url":"https://api.github.com/users/Arkq/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T16:02:21Z","updated_at":"2015-04-12T16:02:21Z","body":"Many thanks for reporting it!\r\nFunny thing is, that I've spotted this bug 3 days ago, but I was too lazy to fix it right away."}}