{"action":"created","comment":{"url":"https://api.github.com/repos/clappr/clappr/pulls/comments/33036534","id":33036534,"diff_hunk":"@@ -37,6 +37,54 @@ describe('Utils', function() {\n \n     url = 'http://globo.com/rede-globo/globo-esporte/v/brasil-usa-col/3735973/'\n     expect(utils.seekStringToSeconds(url)).to.equal(0)\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182#t=6000&cview=true\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(6000);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182#t=6000s&cview=true\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(6000);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182#t=10m10s&cview=true\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(610);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182#t=1h20m10s&cview=true\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(4810);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182#t=6000s\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(6000);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182#t=6000\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(6000);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182&t=5m5s\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(305);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?t=5m5s\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(305);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182#t=5m5s\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(305);\n+\n+    var url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182&t=1h10m30s\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(4230);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182&t=1m\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(60);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182&t=40s\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(40);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182&t=40s&more=here\";\n+    expect(utils.seekStringToSeconds(url)).to.equal(40);\n+\n+    url = \"http://www.nytimes.com/video/business/media/100000003661916/destroying.html?playlistId=1194811622182&t=30m5s\";","path":"test/base/utils_spec.js","position":44,"original_position":44,"commit_id":"12b6e6b6d04ec230b9f1ab4f3201587b7519283d","original_commit_id":"12b6e6b6d04ec230b9f1ab4f3201587b7519283d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2015-06-23T12:48:57Z","updated_at":"2015-06-23T12:48:57Z","html_url":"https://github.com/clappr/clappr/pull/496#discussion_r33036534","pull_request_url":"https://api.github.com/repos/clappr/clappr/pulls/496","_links":{"self":{"href":"https://api.github.com/repos/clappr/clappr/pulls/comments/33036534"},"html":{"href":"https://github.com/clappr/clappr/pull/496#discussion_r33036534"},"pull_request":{"href":"https://api.github.com/repos/clappr/clappr/pulls/496"}}},"pull_request":{"url":"https://api.github.com/repos/clappr/clappr/pulls/496","id":38332349,"html_url":"https://github.com/clappr/clappr/pull/496","diff_url":"https://github.com/clappr/clappr/pull/496.diff","patch_url":"https://github.com/clappr/clappr/pull/496.patch","issue_url":"https://api.github.com/repos/clappr/clappr/issues/496","number":496,"state":"open","locked":false,"title":"utils: improve seekStringToSeconds function","user":{"login":"flavioribeiro","id":244265,"avatar_url":"https://avatars.githubusercontent.com/u/244265?v=3","gravatar_id":"","url":"https://api.github.com/users/flavioribeiro","html_url":"https://github.com/flavioribeiro","followers_url":"https://api.github.com/users/flavioribeiro/followers","following_url":"https://api.github.com/users/flavioribeiro/following{/other_user}","gists_url":"https://api.github.com/users/flavioribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/flavioribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flavioribeiro/subscriptions","organizations_url":"https://api.github.com/users/flavioribeiro/orgs","repos_url":"https://api.github.com/users/flavioribeiro/repos","events_url":"https://api.github.com/users/flavioribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/flavioribeiro/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-23T12:48:53Z","updated_at":"2015-06-23T12:48:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb8ba4d19862f7a96adc9d88d44f8250c21d64b2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clappr/clappr/pulls/496/commits","review_comments_url":"https://api.github.com/repos/clappr/clappr/pulls/496/comments","review_comment_url":"https://api.github.com/repos/clappr/clappr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clappr/clappr/issues/496/comments","statuses_url":"https://api.github.com/repos/clappr/clappr/statuses/12b6e6b6d04ec230b9f1ab4f3201587b7519283d","head":{"label":"flavioribeiro:master","ref":"master","sha":"12b6e6b6d04ec230b9f1ab4f3201587b7519283d","user":{"login":"flavioribeiro","id":244265,"avatar_url":"https://avatars.githubusercontent.com/u/244265?v=3","gravatar_id":"","url":"https://api.github.com/users/flavioribeiro","html_url":"https://github.com/flavioribeiro","followers_url":"https://api.github.com/users/flavioribeiro/followers","following_url":"https://api.github.com/users/flavioribeiro/following{/other_user}","gists_url":"https://api.github.com/users/flavioribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/flavioribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flavioribeiro/subscriptions","organizations_url":"https://api.github.com/users/flavioribeiro/orgs","repos_url":"https://api.github.com/users/flavioribeiro/repos","events_url":"https://api.github.com/users/flavioribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/flavioribeiro/received_events","type":"User","site_admin":false},"repo":{"id":37917697,"name":"clappr","full_name":"flavioribeiro/clappr","owner":{"login":"flavioribeiro","id":244265,"avatar_url":"https://avatars.githubusercontent.com/u/244265?v=3","gravatar_id":"","url":"https://api.github.com/users/flavioribeiro","html_url":"https://github.com/flavioribeiro","followers_url":"https://api.github.com/users/flavioribeiro/followers","following_url":"https://api.github.com/users/flavioribeiro/following{/other_user}","gists_url":"https://api.github.com/users/flavioribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/flavioribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flavioribeiro/subscriptions","organizations_url":"https://api.github.com/users/flavioribeiro/orgs","repos_url":"https://api.github.com/users/flavioribeiro/repos","events_url":"https://api.github.com/users/flavioribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/flavioribeiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flavioribeiro/clappr","description":"An extensible media player for the web","fork":true,"url":"https://api.github.com/repos/flavioribeiro/clappr","forks_url":"https://api.github.com/repos/flavioribeiro/clappr/forks","keys_url":"https://api.github.com/repos/flavioribeiro/clappr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flavioribeiro/clappr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flavioribeiro/clappr/teams","hooks_url":"https://api.github.com/repos/flavioribeiro/clappr/hooks","issue_events_url":"https://api.github.com/repos/flavioribeiro/clappr/issues/events{/number}","events_url":"https://api.github.com/repos/flavioribeiro/clappr/events","assignees_url":"https://api.github.com/repos/flavioribeiro/clappr/assignees{/user}","branches_url":"https://api.github.com/repos/flavioribeiro/clappr/branches{/branch}","tags_url":"https://api.github.com/repos/flavioribeiro/clappr/tags","blobs_url":"https://api.github.com/repos/flavioribeiro/clappr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flavioribeiro/clappr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flavioribeiro/clappr/git/refs{/sha}","trees_url":"https://api.github.com/repos/flavioribeiro/clappr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flavioribeiro/clappr/statuses/{sha}","languages_url":"https://api.github.com/repos/flavioribeiro/clappr/languages","stargazers_url":"https://api.github.com/repos/flavioribeiro/clappr/stargazers","contributors_url":"https://api.github.com/repos/flavioribeiro/clappr/contributors","subscribers_url":"https://api.github.com/repos/flavioribeiro/clappr/subscribers","subscription_url":"https://api.github.com/repos/flavioribeiro/clappr/subscription","commits_url":"https://api.github.com/repos/flavioribeiro/clappr/commits{/sha}","git_commits_url":"https://api.github.com/repos/flavioribeiro/clappr/git/commits{/sha}","comments_url":"https://api.github.com/repos/flavioribeiro/clappr/comments{/number}","issue_comment_url":"https://api.github.com/repos/flavioribeiro/clappr/issues/comments{/number}","contents_url":"https://api.github.com/repos/flavioribeiro/clappr/contents/{+path}","compare_url":"https://api.github.com/repos/flavioribeiro/clappr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flavioribeiro/clappr/merges","archive_url":"https://api.github.com/repos/flavioribeiro/clappr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flavioribeiro/clappr/downloads","issues_url":"https://api.github.com/repos/flavioribeiro/clappr/issues{/number}","pulls_url":"https://api.github.com/repos/flavioribeiro/clappr/pulls{/number}","milestones_url":"https://api.github.com/repos/flavioribeiro/clappr/milestones{/number}","notifications_url":"https://api.github.com/repos/flavioribeiro/clappr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flavioribeiro/clappr/labels{/name}","releases_url":"https://api.github.com/repos/flavioribeiro/clappr/releases{/id}","created_at":"2015-06-23T12:29:07Z","updated_at":"2015-06-23T12:29:07Z","pushed_at":"2015-06-23T12:48:13Z","git_url":"git://github.com/flavioribeiro/clappr.git","ssh_url":"git@github.com:flavioribeiro/clappr.git","clone_url":"https://github.com/flavioribeiro/clappr.git","svn_url":"https://github.com/flavioribeiro/clappr","homepage":"http://clappr.io","size":96334,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"clappr:master","ref":"master","sha":"61193197e3aae0b26dea1842894810efdd138206","user":{"login":"clappr","id":10685859,"avatar_url":"https://avatars.githubusercontent.com/u/10685859?v=3","gravatar_id":"","url":"https://api.github.com/users/clappr","html_url":"https://github.com/clappr","followers_url":"https://api.github.com/users/clappr/followers","following_url":"https://api.github.com/users/clappr/following{/other_user}","gists_url":"https://api.github.com/users/clappr/gists{/gist_id}","starred_url":"https://api.github.com/users/clappr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clappr/subscriptions","organizations_url":"https://api.github.com/users/clappr/orgs","repos_url":"https://api.github.com/users/clappr/repos","events_url":"https://api.github.com/users/clappr/events{/privacy}","received_events_url":"https://api.github.com/users/clappr/received_events","type":"Organization","site_admin":false},"repo":{"id":16844474,"name":"clappr","full_name":"clappr/clappr","owner":{"login":"clappr","id":10685859,"avatar_url":"https://avatars.githubusercontent.com/u/10685859?v=3","gravatar_id":"","url":"https://api.github.com/users/clappr","html_url":"https://github.com/clappr","followers_url":"https://api.github.com/users/clappr/followers","following_url":"https://api.github.com/users/clappr/following{/other_user}","gists_url":"https://api.github.com/users/clappr/gists{/gist_id}","starred_url":"https://api.github.com/users/clappr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clappr/subscriptions","organizations_url":"https://api.github.com/users/clappr/orgs","repos_url":"https://api.github.com/users/clappr/repos","events_url":"https://api.github.com/users/clappr/events{/privacy}","received_events_url":"https://api.github.com/users/clappr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clappr/clappr","description":"An extensible media player for the web","fork":false,"url":"https://api.github.com/repos/clappr/clappr","forks_url":"https://api.github.com/repos/clappr/clappr/forks","keys_url":"https://api.github.com/repos/clappr/clappr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clappr/clappr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clappr/clappr/teams","hooks_url":"https://api.github.com/repos/clappr/clappr/hooks","issue_events_url":"https://api.github.com/repos/clappr/clappr/issues/events{/number}","events_url":"https://api.github.com/repos/clappr/clappr/events","assignees_url":"https://api.github.com/repos/clappr/clappr/assignees{/user}","branches_url":"https://api.github.com/repos/clappr/clappr/branches{/branch}","tags_url":"https://api.github.com/repos/clappr/clappr/tags","blobs_url":"https://api.github.com/repos/clappr/clappr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clappr/clappr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clappr/clappr/git/refs{/sha}","trees_url":"https://api.github.com/repos/clappr/clappr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clappr/clappr/statuses/{sha}","languages_url":"https://api.github.com/repos/clappr/clappr/languages","stargazers_url":"https://api.github.com/repos/clappr/clappr/stargazers","contributors_url":"https://api.github.com/repos/clappr/clappr/contributors","subscribers_url":"https://api.github.com/repos/clappr/clappr/subscribers","subscription_url":"https://api.github.com/repos/clappr/clappr/subscription","commits_url":"https://api.github.com/repos/clappr/clappr/commits{/sha}","git_commits_url":"https://api.github.com/repos/clappr/clappr/git/commits{/sha}","comments_url":"https://api.github.com/repos/clappr/clappr/comments{/number}","issue_comment_url":"https://api.github.com/repos/clappr/clappr/issues/comments{/number}","contents_url":"https://api.github.com/repos/clappr/clappr/contents/{+path}","compare_url":"https://api.github.com/repos/clappr/clappr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clappr/clappr/merges","archive_url":"https://api.github.com/repos/clappr/clappr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clappr/clappr/downloads","issues_url":"https://api.github.com/repos/clappr/clappr/issues{/number}","pulls_url":"https://api.github.com/repos/clappr/clappr/pulls{/number}","milestones_url":"https://api.github.com/repos/clappr/clappr/milestones{/number}","notifications_url":"https://api.github.com/repos/clappr/clappr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clappr/clappr/labels{/name}","releases_url":"https://api.github.com/repos/clappr/clappr/releases{/id}","created_at":"2014-02-14T17:36:40Z","updated_at":"2015-06-22T10:01:17Z","pushed_at":"2015-06-23T12:48:53Z","git_url":"git://github.com/clappr/clappr.git","ssh_url":"git@github.com:clappr/clappr.git","clone_url":"https://github.com/clappr/clappr.git","svn_url":"https://github.com/clappr/clappr","homepage":"http://clappr.io","size":96334,"stargazers_count":2278,"watchers_count":2278,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":189,"mirror_url":null,"open_issues_count":48,"forks":189,"open_issues":48,"watchers":2278,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clappr/clappr/pulls/496"},"html":{"href":"https://github.com/clappr/clappr/pull/496"},"issue":{"href":"https://api.github.com/repos/clappr/clappr/issues/496"},"comments":{"href":"https://api.github.com/repos/clappr/clappr/issues/496/comments"},"review_comments":{"href":"https://api.github.com/repos/clappr/clappr/pulls/496/comments"},"review_comment":{"href":"https://api.github.com/repos/clappr/clappr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clappr/clappr/pulls/496/commits"},"statuses":{"href":"https://api.github.com/repos/clappr/clappr/statuses/12b6e6b6d04ec230b9f1ab4f3201587b7519283d"}}}}