GitHub PullRequestReviewCommentEvent at 2014-11-20 21:58:17
Repository: gaia
Actor: hfiguiere
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/20680670","id":20680670,"diff_hunk":"@@ -0,0 +1,171 @@\n+/* exported Playlist */\n+/* m3u and pls parsing. */\n+'use strict';\n+\n+function Playlist(path) {\n+  this._content = [];\n+  this._extm3u = false;\n+  this._basePath = null;\n+\n+  if (path) {\n+    this._basePath = path;\n+    var idx = this._basePath.lastIndexOf('/');\n+    if(idx != -1) {\n+      this._basePath = this._basePath.slice(0, idx + 1);\n+    }\n+  }\n+}\n+\n+Playlist.prototype = {\n+\n+\n+  get isExtm3u() {\n+    return this._extm3u;\n+  },\n+\n+  get content() {\n+    return this._content;\n+  },\n+\n+  get path() {\n+    return this._path;\n+  },\n+\n+  isUrl: function(path) {\n+    var url = null;\n+    try {\n+      url = new URL(path);\n+    }\n+    catch(e) {\n+      return false;\n+    }\n+    return true;\n+  },\n+\n+  // Normalize the song path.\n+  // m3u state that path is either absolute or relative to the playlist\n+  normalizeSongPath: function(path) {","path":"apps/music/js/playlist.js","position":47,"original_position":47,"commit_id":"f0d8bc3d1c77689f3ccbe1cbb044b0caf9a64525","original_commit_id":"f0d8bc3d1c77689f3ccbe1cbb044b0caf9a64525","user":{"login":"hfiguiere","id":114441,"avatar_url":"https://avatars.githubusercontent.com/u/114441?v=3","gravatar_id":"","url":"https://api.github.com/users/hfiguiere","html_url":"https://github.com/hfiguiere","followers_url":"https://api.github.com/users/hfiguiere/followers","following_url":"https://api.github.com/users/hfiguiere/following{/other_user}","gists_url":"https://api.github.com/users/hfiguiere/gists{/gist_id}","starred_url":"https://api.github.com/users/hfiguiere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfiguiere/subscriptions","organizations_url":"https://api.github.com/users/hfiguiere/orgs","repos_url":"https://api.github.com/users/hfiguiere/repos","events_url":"https://api.github.com/users/hfiguiere/events{/privacy}","received_events_url":"https://api.github.com/users/hfiguiere/received_events","type":"User","site_admin":false},"body":"makeAbsolutePath() make sense.","created_at":"2014-11-20T21:58:17Z","updated_at":"2014-11-20T21:58:17Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/25941#discussion_r20680670","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/20680670"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/25941#discussion_r20680670"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941","id":24069618,"html_url":"https://github.com/mozilla-b2g/gaia/pull/25941","diff_url":"https://github.com/mozilla-b2g/gaia/pull/25941.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/25941.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/25941","number":25941,"state":"open","locked":false,"title":"Bug 1093219 - m3u parsing","user":{"login":"hfiguiere","id":114441,"avatar_url":"https://avatars.githubusercontent.com/u/114441?v=3","gravatar_id":"","url":"https://api.github.com/users/hfiguiere","html_url":"https://github.com/hfiguiere","followers_url":"https://api.github.com/users/hfiguiere/followers","following_url":"https://api.github.com/users/hfiguiere/following{/other_user}","gists_url":"https://api.github.com/users/hfiguiere/gists{/gist_id}","starred_url":"https://api.github.com/users/hfiguiere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfiguiere/subscriptions","organizations_url":"https://api.github.com/users/hfiguiere/orgs","repos_url":"https://api.github.com/users/hfiguiere/repos","events_url":"https://api.github.com/users/hfiguiere/events{/privacy}","received_events_url":"https://api.github.com/users/hfiguiere/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-07T17:47:51Z","updated_at":"2014-11-20T21:58:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e45c32299d43eb5bfa270699308d8565ac267e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/25941/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/f0d8bc3d1c77689f3ccbe1cbb044b0caf9a64525","head":{"label":"hfiguiere:bug1093219-m3u","ref":"bug1093219-m3u","sha":"f0d8bc3d1c77689f3ccbe1cbb044b0caf9a64525","user":{"login":"hfiguiere","id":114441,"avatar_url":"https://avatars.githubusercontent.com/u/114441?v=3","gravatar_id":"","url":"https://api.github.com/users/hfiguiere","html_url":"https://github.com/hfiguiere","followers_url":"https://api.github.com/users/hfiguiere/followers","following_url":"https://api.github.com/users/hfiguiere/following{/other_user}","gists_url":"https://api.github.com/users/hfiguiere/gists{/gist_id}","starred_url":"https://api.github.com/users/hfiguiere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfiguiere/subscriptions","organizations_url":"https://api.github.com/users/hfiguiere/orgs","repos_url":"https://api.github.com/users/hfiguiere/repos","events_url":"https://api.github.com/users/hfiguiere/events{/privacy}","received_events_url":"https://api.github.com/users/hfiguiere/received_events","type":"User","site_admin":false},"repo":{"id":3725377,"name":"gaia","full_name":"hfiguiere/gaia","owner":{"login":"hfiguiere","id":114441,"avatar_url":"https://avatars.githubusercontent.com/u/114441?v=3","gravatar_id":"","url":"https://api.github.com/users/hfiguiere","html_url":"https://github.com/hfiguiere","followers_url":"https://api.github.com/users/hfiguiere/followers","following_url":"https://api.github.com/users/hfiguiere/following{/other_user}","gists_url":"https://api.github.com/users/hfiguiere/gists{/gist_id}","starred_url":"https://api.github.com/users/hfiguiere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfiguiere/subscriptions","organizations_url":"https://api.github.com/users/hfiguiere/orgs","repos_url":"https://api.github.com/users/hfiguiere/repos","events_url":"https://api.github.com/users/hfiguiere/events{/privacy}","received_events_url":"https://api.github.com/users/hfiguiere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hfiguiere/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/hfiguiere/gaia","forks_url":"https://api.github.com/repos/hfiguiere/gaia/forks","keys_url":"https://api.github.com/repos/hfiguiere/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hfiguiere/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hfiguiere/gaia/teams","hooks_url":"https://api.github.com/repos/hfiguiere/gaia/hooks","issue_events_url":"https://api.github.com/repos/hfiguiere/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/hfiguiere/gaia/events","assignees_url":"https://api.github.com/repos/hfiguiere/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/hfiguiere/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/hfiguiere/gaia/tags","blobs_url":"https://api.github.com/repos/hfiguiere/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hfiguiere/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hfiguiere/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/hfiguiere/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hfiguiere/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/hfiguiere/gaia/languages","stargazers_url":"https://api.github.com/repos/hfiguiere/gaia/stargazers","contributors_url":"https://api.github.com/repos/hfiguiere/gaia/contributors","subscribers_url":"https://api.github.com/repos/hfiguiere/gaia/subscribers","subscription_url":"https://api.github.com/repos/hfiguiere/gaia/subscription","commits_url":"https://api.github.com/repos/hfiguiere/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/hfiguiere/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/hfiguiere/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/hfiguiere/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/hfiguiere/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/hfiguiere/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hfiguiere/gaia/merges","archive_url":"https://api.github.com/repos/hfiguiere/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hfiguiere/gaia/downloads","issues_url":"https://api.github.com/repos/hfiguiere/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/hfiguiere/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/hfiguiere/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/hfiguiere/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hfiguiere/gaia/labels{/name}","releases_url":"https://api.github.com/repos/hfiguiere/gaia/releases{/id}","created_at":"2012-03-15T05:01:26Z","updated_at":"2014-07-14T22:52:32Z","pushed_at":"2014-11-20T14:45:36Z","git_url":"git://github.com/hfiguiere/gaia.git","ssh_url":"git@github.com:hfiguiere/gaia.git","clone_url":"https://github.com/hfiguiere/gaia.git","svn_url":"https://github.com/hfiguiere/gaia","homepage":"https://wiki.mozilla.org/B2G","size":842240,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"a710590a62889f0a9b3484e0b22ab4d3abf638c5","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2014-11-20T18:42:00Z","pushed_at":"2014-11-20T18:42:00Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1557957,"stargazers_count":1805,"watchers_count":1805,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2058,"mirror_url":null,"open_issues_count":712,"forks":2058,"open_issues":712,"watchers":1805,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/25941"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/25941"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/25941/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/25941/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/f0d8bc3d1c77689f3ccbe1cbb044b0caf9a64525"}}}}