{"action":"created","comment":{"url":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/comments/40606906","id":40606906,"diff_hunk":"@@ -14,7 +15,52 @@ ApplicationWindow\n     AudioPlayer {\n         id: player\n \n-        onStatusChanged: if (status == AudioPlayer.Failed) infoBanner.showError(errorString);\n+        property SoundCloudTrackModel searchResults\n+\n+        onStatusChanged: {\n+            if (status == AudioPlayer.Failed) infoBanner.showError(errorString);\n+        }\n+\n+        onCurrentIndexChanged: {\n+            // Fetch more tracks in current tracks to play are all played\n+            var model = player.getSearchResults();\n+            if (model && (player.currentIndex + 1) >= model.rowCount()) {\n+                console.log(\"Fetching more tracks\")\n+                model.fetchMore()\n+            }\n+        }\n+\n+        function setTracksToPlay(trackModel) {","path":"app/src/sailfish-qml/qml/harbour-musikloud2.qml","position":31,"original_position":28,"commit_id":"810cb9f060b858f65adf189a0d2aa28cfeaac39c","original_commit_id":"60b1f23f53da3610e534cac5af401d4022147fc4","user":{"login":"abertschi","id":2311941,"avatar_url":"https://avatars.githubusercontent.com/u/2311941?v=3","gravatar_id":"","url":"https://api.github.com/users/abertschi","html_url":"https://github.com/abertschi","followers_url":"https://api.github.com/users/abertschi/followers","following_url":"https://api.github.com/users/abertschi/following{/other_user}","gists_url":"https://api.github.com/users/abertschi/gists{/gist_id}","starred_url":"https://api.github.com/users/abertschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abertschi/subscriptions","organizations_url":"https://api.github.com/users/abertschi/orgs","repos_url":"https://api.github.com/users/abertschi/repos","events_url":"https://api.github.com/users/abertschi/events{/privacy}","received_events_url":"https://api.github.com/users/abertschi/received_events","type":"User","site_admin":false},"body":"I agree. Seems a solid approach. ","created_at":"2015-09-28T21:18:39Z","updated_at":"2015-09-28T21:18:39Z","html_url":"https://github.com/lukedirtwalker/musikloud2/pull/4#discussion_r40606906","pull_request_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/comments/40606906"},"html":{"href":"https://github.com/lukedirtwalker/musikloud2/pull/4#discussion_r40606906"},"pull_request":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4","id":46198453,"html_url":"https://github.com/lukedirtwalker/musikloud2/pull/4","diff_url":"https://github.com/lukedirtwalker/musikloud2/pull/4.diff","patch_url":"https://github.com/lukedirtwalker/musikloud2/pull/4.patch","issue_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/issues/4","number":4,"state":"open","locked":false,"title":"Add tracks to track queue","user":{"login":"abertschi","id":2311941,"avatar_url":"https://avatars.githubusercontent.com/u/2311941?v=3","gravatar_id":"","url":"https://api.github.com/users/abertschi","html_url":"https://github.com/abertschi","followers_url":"https://api.github.com/users/abertschi/followers","following_url":"https://api.github.com/users/abertschi/following{/other_user}","gists_url":"https://api.github.com/users/abertschi/gists{/gist_id}","starred_url":"https://api.github.com/users/abertschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abertschi/subscriptions","organizations_url":"https://api.github.com/users/abertschi/orgs","repos_url":"https://api.github.com/users/abertschi/repos","events_url":"https://api.github.com/users/abertschi/events{/privacy}","received_events_url":"https://api.github.com/users/abertschi/received_events","type":"User","site_admin":false},"body":"As already mentioned here #3\r\n\r\n- Search for songs and use play next/ prev to play through track list.","created_at":"2015-09-28T19:37:39Z","updated_at":"2015-09-28T21:18:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37544a090e13c0a27ab300dfeef05a4998a814e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4/commits","review_comments_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4/comments","review_comment_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/issues/4/comments","statuses_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/statuses/810cb9f060b858f65adf189a0d2aa28cfeaac39c","head":{"label":"abertschi:feature/tracks_to_play","ref":"feature/tracks_to_play","sha":"810cb9f060b858f65adf189a0d2aa28cfeaac39c","user":{"login":"abertschi","id":2311941,"avatar_url":"https://avatars.githubusercontent.com/u/2311941?v=3","gravatar_id":"","url":"https://api.github.com/users/abertschi","html_url":"https://github.com/abertschi","followers_url":"https://api.github.com/users/abertschi/followers","following_url":"https://api.github.com/users/abertschi/following{/other_user}","gists_url":"https://api.github.com/users/abertschi/gists{/gist_id}","starred_url":"https://api.github.com/users/abertschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abertschi/subscriptions","organizations_url":"https://api.github.com/users/abertschi/orgs","repos_url":"https://api.github.com/users/abertschi/repos","events_url":"https://api.github.com/users/abertschi/events{/privacy}","received_events_url":"https://api.github.com/users/abertschi/received_events","type":"User","site_admin":false},"repo":{"id":43088782,"name":"musikloud2","full_name":"abertschi/musikloud2","owner":{"login":"abertschi","id":2311941,"avatar_url":"https://avatars.githubusercontent.com/u/2311941?v=3","gravatar_id":"","url":"https://api.github.com/users/abertschi","html_url":"https://github.com/abertschi","followers_url":"https://api.github.com/users/abertschi/followers","following_url":"https://api.github.com/users/abertschi/following{/other_user}","gists_url":"https://api.github.com/users/abertschi/gists{/gist_id}","starred_url":"https://api.github.com/users/abertschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abertschi/subscriptions","organizations_url":"https://api.github.com/users/abertschi/orgs","repos_url":"https://api.github.com/users/abertschi/repos","events_url":"https://api.github.com/users/abertschi/events{/privacy}","received_events_url":"https://api.github.com/users/abertschi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abertschi/musikloud2","description":"A SoundCloud client and music player that can be extended via plugins.","fork":true,"url":"https://api.github.com/repos/abertschi/musikloud2","forks_url":"https://api.github.com/repos/abertschi/musikloud2/forks","keys_url":"https://api.github.com/repos/abertschi/musikloud2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abertschi/musikloud2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abertschi/musikloud2/teams","hooks_url":"https://api.github.com/repos/abertschi/musikloud2/hooks","issue_events_url":"https://api.github.com/repos/abertschi/musikloud2/issues/events{/number}","events_url":"https://api.github.com/repos/abertschi/musikloud2/events","assignees_url":"https://api.github.com/repos/abertschi/musikloud2/assignees{/user}","branches_url":"https://api.github.com/repos/abertschi/musikloud2/branches{/branch}","tags_url":"https://api.github.com/repos/abertschi/musikloud2/tags","blobs_url":"https://api.github.com/repos/abertschi/musikloud2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abertschi/musikloud2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abertschi/musikloud2/git/refs{/sha}","trees_url":"https://api.github.com/repos/abertschi/musikloud2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abertschi/musikloud2/statuses/{sha}","languages_url":"https://api.github.com/repos/abertschi/musikloud2/languages","stargazers_url":"https://api.github.com/repos/abertschi/musikloud2/stargazers","contributors_url":"https://api.github.com/repos/abertschi/musikloud2/contributors","subscribers_url":"https://api.github.com/repos/abertschi/musikloud2/subscribers","subscription_url":"https://api.github.com/repos/abertschi/musikloud2/subscription","commits_url":"https://api.github.com/repos/abertschi/musikloud2/commits{/sha}","git_commits_url":"https://api.github.com/repos/abertschi/musikloud2/git/commits{/sha}","comments_url":"https://api.github.com/repos/abertschi/musikloud2/comments{/number}","issue_comment_url":"https://api.github.com/repos/abertschi/musikloud2/issues/comments{/number}","contents_url":"https://api.github.com/repos/abertschi/musikloud2/contents/{+path}","compare_url":"https://api.github.com/repos/abertschi/musikloud2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abertschi/musikloud2/merges","archive_url":"https://api.github.com/repos/abertschi/musikloud2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abertschi/musikloud2/downloads","issues_url":"https://api.github.com/repos/abertschi/musikloud2/issues{/number}","pulls_url":"https://api.github.com/repos/abertschi/musikloud2/pulls{/number}","milestones_url":"https://api.github.com/repos/abertschi/musikloud2/milestones{/number}","notifications_url":"https://api.github.com/repos/abertschi/musikloud2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abertschi/musikloud2/labels{/name}","releases_url":"https://api.github.com/repos/abertschi/musikloud2/releases{/id}","created_at":"2015-09-24T19:38:51Z","updated_at":"2015-09-24T19:38:57Z","pushed_at":"2015-09-28T21:16:18Z","git_url":"git://github.com/abertschi/musikloud2.git","ssh_url":"git@github.com:abertschi/musikloud2.git","clone_url":"https://github.com/abertschi/musikloud2.git","svn_url":"https://github.com/abertschi/musikloud2","homepage":null,"size":552,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"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":"sailfish_port"}},"base":{"label":"lukedirtwalker:sailfish_port","ref":"sailfish_port","sha":"0772925001c57f635fcc44b2a738e209a3cab727","user":{"login":"lukedirtwalker","id":3530769,"avatar_url":"https://avatars.githubusercontent.com/u/3530769?v=3","gravatar_id":"","url":"https://api.github.com/users/lukedirtwalker","html_url":"https://github.com/lukedirtwalker","followers_url":"https://api.github.com/users/lukedirtwalker/followers","following_url":"https://api.github.com/users/lukedirtwalker/following{/other_user}","gists_url":"https://api.github.com/users/lukedirtwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/lukedirtwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukedirtwalker/subscriptions","organizations_url":"https://api.github.com/users/lukedirtwalker/orgs","repos_url":"https://api.github.com/users/lukedirtwalker/repos","events_url":"https://api.github.com/users/lukedirtwalker/events{/privacy}","received_events_url":"https://api.github.com/users/lukedirtwalker/received_events","type":"User","site_admin":false},"repo":{"id":38489513,"name":"musikloud2","full_name":"lukedirtwalker/musikloud2","owner":{"login":"lukedirtwalker","id":3530769,"avatar_url":"https://avatars.githubusercontent.com/u/3530769?v=3","gravatar_id":"","url":"https://api.github.com/users/lukedirtwalker","html_url":"https://github.com/lukedirtwalker","followers_url":"https://api.github.com/users/lukedirtwalker/followers","following_url":"https://api.github.com/users/lukedirtwalker/following{/other_user}","gists_url":"https://api.github.com/users/lukedirtwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/lukedirtwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukedirtwalker/subscriptions","organizations_url":"https://api.github.com/users/lukedirtwalker/orgs","repos_url":"https://api.github.com/users/lukedirtwalker/repos","events_url":"https://api.github.com/users/lukedirtwalker/events{/privacy}","received_events_url":"https://api.github.com/users/lukedirtwalker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukedirtwalker/musikloud2","description":"A SoundCloud client and music player that can be extended via plugins.","fork":true,"url":"https://api.github.com/repos/lukedirtwalker/musikloud2","forks_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/forks","keys_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/teams","hooks_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/hooks","issue_events_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/issues/events{/number}","events_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/events","assignees_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/assignees{/user}","branches_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/branches{/branch}","tags_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/tags","blobs_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/statuses/{sha}","languages_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/languages","stargazers_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/stargazers","contributors_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/contributors","subscribers_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/subscribers","subscription_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/subscription","commits_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/contents/{+path}","compare_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/merges","archive_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/downloads","issues_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/issues{/number}","pulls_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls{/number}","milestones_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/milestones{/number}","notifications_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/labels{/name}","releases_url":"https://api.github.com/repos/lukedirtwalker/musikloud2/releases{/id}","created_at":"2015-07-03T11:30:02Z","updated_at":"2015-09-27T08:24:00Z","pushed_at":"2015-09-28T21:16:18Z","git_url":"git://github.com/lukedirtwalker/musikloud2.git","ssh_url":"git@github.com:lukedirtwalker/musikloud2.git","clone_url":"https://github.com/lukedirtwalker/musikloud2.git","svn_url":"https://github.com/lukedirtwalker/musikloud2","homepage":null,"size":552,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"sailfish_port"}},"_links":{"self":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4"},"html":{"href":"https://github.com/lukedirtwalker/musikloud2/pull/4"},"issue":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/issues/4"},"comments":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/lukedirtwalker/musikloud2/statuses/810cb9f060b858f65adf189a0d2aa28cfeaac39c"}}}}