{"action":"created","comment":{"url":"https://api.github.com/repos/SoCo/SoCo/pulls/comments/38870720","id":38870720,"diff_hunk":"@@ -1833,6 +1872,181 @@ def add_item_to_sonos_playlist(self, queueable_item, sonos_playlist):\n             ('AddAtIndex', 4294967295)\n         ])\n \n+    def reorder_sonos_playlist(self, object_id, tracks, new_pos, update_id=0):\n+        \"\"\" Reorder and/or Remove tracks in a Sonos playlist. The underlying\n+        call is quite complex. See the helper methods\n+        :py:meth:`clear_sonos_playlist`, :py:meth:`move_in_sonos_playlist`,\n+        :py:meth:`remove_from_sonos_playlist` for simplified usage.\n+\n+        update_id - If you have a series of operations, tracking the update_id","path":"soco/core.py","position":79,"original_position":79,"commit_id":"e098dd951d912854b86e45d370cbafa7095e8d2d","original_commit_id":"e098dd951d912854b86e45d370cbafa7095e8d2d","user":{"login":"lawrenceakka","id":5252441,"avatar_url":"https://avatars.githubusercontent.com/u/5252441?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrenceakka","html_url":"https://github.com/lawrenceakka","followers_url":"https://api.github.com/users/lawrenceakka/followers","following_url":"https://api.github.com/users/lawrenceakka/following{/other_user}","gists_url":"https://api.github.com/users/lawrenceakka/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrenceakka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrenceakka/subscriptions","organizations_url":"https://api.github.com/users/lawrenceakka/orgs","repos_url":"https://api.github.com/users/lawrenceakka/repos","events_url":"https://api.github.com/users/lawrenceakka/events{/privacy}","received_events_url":"https://api.github.com/users/lawrenceakka/received_events","type":"User","site_admin":false},"body":"Please can you explain more - if not in the doctstring then in a normal comment","created_at":"2015-09-07T15:48:19Z","updated_at":"2015-09-07T15:48:19Z","html_url":"https://github.com/SoCo/SoCo/pull/352#discussion_r38870720","pull_request_url":"https://api.github.com/repos/SoCo/SoCo/pulls/352","_links":{"self":{"href":"https://api.github.com/repos/SoCo/SoCo/pulls/comments/38870720"},"html":{"href":"https://github.com/SoCo/SoCo/pull/352#discussion_r38870720"},"pull_request":{"href":"https://api.github.com/repos/SoCo/SoCo/pulls/352"}}},"pull_request":{"url":"https://api.github.com/repos/SoCo/SoCo/pulls/352","id":44319329,"html_url":"https://github.com/SoCo/SoCo/pull/352","diff_url":"https://github.com/SoCo/SoCo/pull/352.diff","patch_url":"https://github.com/SoCo/SoCo/pull/352.patch","issue_url":"https://api.github.com/repos/SoCo/SoCo/issues/352","number":352,"state":"open","locked":false,"title":"Major PR for Sonos Playlist Management.","user":{"login":"dundeemt","id":969926,"avatar_url":"https://avatars.githubusercontent.com/u/969926?v=3","gravatar_id":"","url":"https://api.github.com/users/dundeemt","html_url":"https://github.com/dundeemt","followers_url":"https://api.github.com/users/dundeemt/followers","following_url":"https://api.github.com/users/dundeemt/following{/other_user}","gists_url":"https://api.github.com/users/dundeemt/gists{/gist_id}","starred_url":"https://api.github.com/users/dundeemt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dundeemt/subscriptions","organizations_url":"https://api.github.com/users/dundeemt/orgs","repos_url":"https://api.github.com/users/dundeemt/repos","events_url":"https://api.github.com/users/dundeemt/events{/privacy}","received_events_url":"https://api.github.com/users/dundeemt/received_events","type":"User","site_admin":false},"body":" Add base method reorder_sonos_playlist and a number of helpers, documentation and tests.","created_at":"2015-09-07T04:28:32Z","updated_at":"2015-09-07T15:48:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e0fef9c52fe5555852b4721c5e94de9ee46aa46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SoCo/SoCo/pulls/352/commits","review_comments_url":"https://api.github.com/repos/SoCo/SoCo/pulls/352/comments","review_comment_url":"https://api.github.com/repos/SoCo/SoCo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SoCo/SoCo/issues/352/comments","statuses_url":"https://api.github.com/repos/SoCo/SoCo/statuses/e098dd951d912854b86e45d370cbafa7095e8d2d","head":{"label":"dundeemt:spl-reorder","ref":"spl-reorder","sha":"e098dd951d912854b86e45d370cbafa7095e8d2d","user":{"login":"dundeemt","id":969926,"avatar_url":"https://avatars.githubusercontent.com/u/969926?v=3","gravatar_id":"","url":"https://api.github.com/users/dundeemt","html_url":"https://github.com/dundeemt","followers_url":"https://api.github.com/users/dundeemt/followers","following_url":"https://api.github.com/users/dundeemt/following{/other_user}","gists_url":"https://api.github.com/users/dundeemt/gists{/gist_id}","starred_url":"https://api.github.com/users/dundeemt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dundeemt/subscriptions","organizations_url":"https://api.github.com/users/dundeemt/orgs","repos_url":"https://api.github.com/users/dundeemt/repos","events_url":"https://api.github.com/users/dundeemt/events{/privacy}","received_events_url":"https://api.github.com/users/dundeemt/received_events","type":"User","site_admin":false},"repo":{"id":38574975,"name":"SoCo","full_name":"dundeemt/SoCo","owner":{"login":"dundeemt","id":969926,"avatar_url":"https://avatars.githubusercontent.com/u/969926?v=3","gravatar_id":"","url":"https://api.github.com/users/dundeemt","html_url":"https://github.com/dundeemt","followers_url":"https://api.github.com/users/dundeemt/followers","following_url":"https://api.github.com/users/dundeemt/following{/other_user}","gists_url":"https://api.github.com/users/dundeemt/gists{/gist_id}","starred_url":"https://api.github.com/users/dundeemt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dundeemt/subscriptions","organizations_url":"https://api.github.com/users/dundeemt/orgs","repos_url":"https://api.github.com/users/dundeemt/repos","events_url":"https://api.github.com/users/dundeemt/events{/privacy}","received_events_url":"https://api.github.com/users/dundeemt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dundeemt/SoCo","description":"SoCo (Sonos Controller) is a simple Python class that allows you to programmatically control Sonos speakers.","fork":true,"url":"https://api.github.com/repos/dundeemt/SoCo","forks_url":"https://api.github.com/repos/dundeemt/SoCo/forks","keys_url":"https://api.github.com/repos/dundeemt/SoCo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dundeemt/SoCo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dundeemt/SoCo/teams","hooks_url":"https://api.github.com/repos/dundeemt/SoCo/hooks","issue_events_url":"https://api.github.com/repos/dundeemt/SoCo/issues/events{/number}","events_url":"https://api.github.com/repos/dundeemt/SoCo/events","assignees_url":"https://api.github.com/repos/dundeemt/SoCo/assignees{/user}","branches_url":"https://api.github.com/repos/dundeemt/SoCo/branches{/branch}","tags_url":"https://api.github.com/repos/dundeemt/SoCo/tags","blobs_url":"https://api.github.com/repos/dundeemt/SoCo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dundeemt/SoCo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dundeemt/SoCo/git/refs{/sha}","trees_url":"https://api.github.com/repos/dundeemt/SoCo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dundeemt/SoCo/statuses/{sha}","languages_url":"https://api.github.com/repos/dundeemt/SoCo/languages","stargazers_url":"https://api.github.com/repos/dundeemt/SoCo/stargazers","contributors_url":"https://api.github.com/repos/dundeemt/SoCo/contributors","subscribers_url":"https://api.github.com/repos/dundeemt/SoCo/subscribers","subscription_url":"https://api.github.com/repos/dundeemt/SoCo/subscription","commits_url":"https://api.github.com/repos/dundeemt/SoCo/commits{/sha}","git_commits_url":"https://api.github.com/repos/dundeemt/SoCo/git/commits{/sha}","comments_url":"https://api.github.com/repos/dundeemt/SoCo/comments{/number}","issue_comment_url":"https://api.github.com/repos/dundeemt/SoCo/issues/comments{/number}","contents_url":"https://api.github.com/repos/dundeemt/SoCo/contents/{+path}","compare_url":"https://api.github.com/repos/dundeemt/SoCo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dundeemt/SoCo/merges","archive_url":"https://api.github.com/repos/dundeemt/SoCo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dundeemt/SoCo/downloads","issues_url":"https://api.github.com/repos/dundeemt/SoCo/issues{/number}","pulls_url":"https://api.github.com/repos/dundeemt/SoCo/pulls{/number}","milestones_url":"https://api.github.com/repos/dundeemt/SoCo/milestones{/number}","notifications_url":"https://api.github.com/repos/dundeemt/SoCo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dundeemt/SoCo/labels{/name}","releases_url":"https://api.github.com/repos/dundeemt/SoCo/releases{/id}","created_at":"2015-07-05T16:04:05Z","updated_at":"2015-07-05T16:04:06Z","pushed_at":"2015-09-07T14:30:14Z","git_url":"git://github.com/dundeemt/SoCo.git","ssh_url":"git@github.com:dundeemt/SoCo.git","clone_url":"https://github.com/dundeemt/SoCo.git","svn_url":"https://github.com/dundeemt/SoCo","homepage":"http://python-soco.com/","size":1941,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SoCo:master","ref":"master","sha":"4b0926529a3ac139b183ff398e792f715e82d60b","user":{"login":"SoCo","id":3826649,"avatar_url":"https://avatars.githubusercontent.com/u/3826649?v=3","gravatar_id":"","url":"https://api.github.com/users/SoCo","html_url":"https://github.com/SoCo","followers_url":"https://api.github.com/users/SoCo/followers","following_url":"https://api.github.com/users/SoCo/following{/other_user}","gists_url":"https://api.github.com/users/SoCo/gists{/gist_id}","starred_url":"https://api.github.com/users/SoCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoCo/subscriptions","organizations_url":"https://api.github.com/users/SoCo/orgs","repos_url":"https://api.github.com/users/SoCo/repos","events_url":"https://api.github.com/users/SoCo/events{/privacy}","received_events_url":"https://api.github.com/users/SoCo/received_events","type":"Organization","site_admin":false},"repo":{"id":8763405,"name":"SoCo","full_name":"SoCo/SoCo","owner":{"login":"SoCo","id":3826649,"avatar_url":"https://avatars.githubusercontent.com/u/3826649?v=3","gravatar_id":"","url":"https://api.github.com/users/SoCo","html_url":"https://github.com/SoCo","followers_url":"https://api.github.com/users/SoCo/followers","following_url":"https://api.github.com/users/SoCo/following{/other_user}","gists_url":"https://api.github.com/users/SoCo/gists{/gist_id}","starred_url":"https://api.github.com/users/SoCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoCo/subscriptions","organizations_url":"https://api.github.com/users/SoCo/orgs","repos_url":"https://api.github.com/users/SoCo/repos","events_url":"https://api.github.com/users/SoCo/events{/privacy}","received_events_url":"https://api.github.com/users/SoCo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SoCo/SoCo","description":"SoCo (Sonos Controller) is a simple Python class that allows you to programmatically control Sonos speakers.","fork":false,"url":"https://api.github.com/repos/SoCo/SoCo","forks_url":"https://api.github.com/repos/SoCo/SoCo/forks","keys_url":"https://api.github.com/repos/SoCo/SoCo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SoCo/SoCo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SoCo/SoCo/teams","hooks_url":"https://api.github.com/repos/SoCo/SoCo/hooks","issue_events_url":"https://api.github.com/repos/SoCo/SoCo/issues/events{/number}","events_url":"https://api.github.com/repos/SoCo/SoCo/events","assignees_url":"https://api.github.com/repos/SoCo/SoCo/assignees{/user}","branches_url":"https://api.github.com/repos/SoCo/SoCo/branches{/branch}","tags_url":"https://api.github.com/repos/SoCo/SoCo/tags","blobs_url":"https://api.github.com/repos/SoCo/SoCo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SoCo/SoCo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SoCo/SoCo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SoCo/SoCo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SoCo/SoCo/statuses/{sha}","languages_url":"https://api.github.com/repos/SoCo/SoCo/languages","stargazers_url":"https://api.github.com/repos/SoCo/SoCo/stargazers","contributors_url":"https://api.github.com/repos/SoCo/SoCo/contributors","subscribers_url":"https://api.github.com/repos/SoCo/SoCo/subscribers","subscription_url":"https://api.github.com/repos/SoCo/SoCo/subscription","commits_url":"https://api.github.com/repos/SoCo/SoCo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SoCo/SoCo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SoCo/SoCo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SoCo/SoCo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SoCo/SoCo/contents/{+path}","compare_url":"https://api.github.com/repos/SoCo/SoCo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SoCo/SoCo/merges","archive_url":"https://api.github.com/repos/SoCo/SoCo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SoCo/SoCo/downloads","issues_url":"https://api.github.com/repos/SoCo/SoCo/issues{/number}","pulls_url":"https://api.github.com/repos/SoCo/SoCo/pulls{/number}","milestones_url":"https://api.github.com/repos/SoCo/SoCo/milestones{/number}","notifications_url":"https://api.github.com/repos/SoCo/SoCo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SoCo/SoCo/labels{/name}","releases_url":"https://api.github.com/repos/SoCo/SoCo/releases{/id}","created_at":"2013-03-13T22:56:39Z","updated_at":"2015-09-05T22:49:39Z","pushed_at":"2015-09-07T15:31:20Z","git_url":"git://github.com/SoCo/SoCo.git","ssh_url":"git@github.com:SoCo/SoCo.git","clone_url":"https://github.com/SoCo/SoCo.git","svn_url":"https://github.com/SoCo/SoCo","homepage":"http://python-soco.com/","size":4338,"stargazers_count":376,"watchers_count":376,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":40,"forks":96,"open_issues":40,"watchers":376,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SoCo/SoCo/pulls/352"},"html":{"href":"https://github.com/SoCo/SoCo/pull/352"},"issue":{"href":"https://api.github.com/repos/SoCo/SoCo/issues/352"},"comments":{"href":"https://api.github.com/repos/SoCo/SoCo/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/SoCo/SoCo/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/SoCo/SoCo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SoCo/SoCo/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/SoCo/SoCo/statuses/e098dd951d912854b86e45d370cbafa7095e8d2d"}}}}