{"action":"created","comment":{"url":"https://api.github.com/repos/learningequality/ka-lite/pulls/comments/25947848","id":25947848,"diff_hunk":"@@ -175,6 +176,14 @@ def youtube_dl_cb(stats, progress_callback, *args, **kwargs):\n                             progress_callback(percent=percent)\n                         scrape_video(video.youtube_id, quiet=not settings.DEBUG, callback=partial(youtube_dl_cb, progress_callback=progress_callback))\n \n+                    except IOError as e:\n+                        logging.exception(e)\n+                        video.download_in_progress = False\n+                        video.save()\n+                        failed_youtube_ids.append(video.youtube_id)\n+                        time.sleep(10)","path":"kalite/updates/management/commands/videodownload.py","position":17,"original_position":17,"commit_id":"78d659056043cf6ab6150d6d51e4bb516fa7c395","original_commit_id":"78d659056043cf6ab6150d6d51e4bb516fa7c395","user":{"login":"anuragkanungo","id":4207886,"avatar_url":"https://avatars.githubusercontent.com/u/4207886?v=3","gravatar_id":"","url":"https://api.github.com/users/anuragkanungo","html_url":"https://github.com/anuragkanungo","followers_url":"https://api.github.com/users/anuragkanungo/followers","following_url":"https://api.github.com/users/anuragkanungo/following{/other_user}","gists_url":"https://api.github.com/users/anuragkanungo/gists{/gist_id}","starred_url":"https://api.github.com/users/anuragkanungo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuragkanungo/subscriptions","organizations_url":"https://api.github.com/users/anuragkanungo/orgs","repos_url":"https://api.github.com/users/anuragkanungo/repos","events_url":"https://api.github.com/users/anuragkanungo/events{/privacy}","received_events_url":"https://api.github.com/users/anuragkanungo/received_events","type":"User","site_admin":false},"body":"@rtibbles \r\nI don't know whether we should use sleep or\r\n we can use am_i_online function and keep waiting until internet is available again.","created_at":"2015-03-06T14:39:21Z","updated_at":"2015-03-06T14:39:21Z","html_url":"https://github.com/learningequality/ka-lite/pull/3181#discussion_r25947848","pull_request_url":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181","_links":{"self":{"href":"https://api.github.com/repos/learningequality/ka-lite/pulls/comments/25947848"},"html":{"href":"https://github.com/learningequality/ka-lite/pull/3181#discussion_r25947848"},"pull_request":{"href":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181"}}},"pull_request":{"url":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181","id":30494263,"html_url":"https://github.com/learningequality/ka-lite/pull/3181","diff_url":"https://github.com/learningequality/ka-lite/pull/3181.diff","patch_url":"https://github.com/learningequality/ka-lite/pull/3181.patch","issue_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3181","number":3181,"state":"open","locked":false,"title":"Partial Fix for 2855","user":{"login":"anuragkanungo","id":4207886,"avatar_url":"https://avatars.githubusercontent.com/u/4207886?v=3","gravatar_id":"","url":"https://api.github.com/users/anuragkanungo","html_url":"https://github.com/anuragkanungo","followers_url":"https://api.github.com/users/anuragkanungo/followers","following_url":"https://api.github.com/users/anuragkanungo/following{/other_user}","gists_url":"https://api.github.com/users/anuragkanungo/gists{/gist_id}","starred_url":"https://api.github.com/users/anuragkanungo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuragkanungo/subscriptions","organizations_url":"https://api.github.com/users/anuragkanungo/orgs","repos_url":"https://api.github.com/users/anuragkanungo/repos","events_url":"https://api.github.com/users/anuragkanungo/events{/privacy}","received_events_url":"https://api.github.com/users/anuragkanungo/received_events","type":"User","site_admin":false},"body":"Fixes #2855","created_at":"2015-03-04T19:08:20Z","updated_at":"2015-03-06T14:39:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1402a29d173a54cdefff30fe7121f03e9938154a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181/commits","review_comments_url":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181/comments","review_comment_url":"https://api.github.com/repos/learningequality/ka-lite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3181/comments","statuses_url":"https://api.github.com/repos/learningequality/ka-lite/statuses/78d659056043cf6ab6150d6d51e4bb516fa7c395","head":{"label":"anuragkanungo:develop","ref":"develop","sha":"78d659056043cf6ab6150d6d51e4bb516fa7c395","user":{"login":"anuragkanungo","id":4207886,"avatar_url":"https://avatars.githubusercontent.com/u/4207886?v=3","gravatar_id":"","url":"https://api.github.com/users/anuragkanungo","html_url":"https://github.com/anuragkanungo","followers_url":"https://api.github.com/users/anuragkanungo/followers","following_url":"https://api.github.com/users/anuragkanungo/following{/other_user}","gists_url":"https://api.github.com/users/anuragkanungo/gists{/gist_id}","starred_url":"https://api.github.com/users/anuragkanungo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuragkanungo/subscriptions","organizations_url":"https://api.github.com/users/anuragkanungo/orgs","repos_url":"https://api.github.com/users/anuragkanungo/repos","events_url":"https://api.github.com/users/anuragkanungo/events{/privacy}","received_events_url":"https://api.github.com/users/anuragkanungo/received_events","type":"User","site_admin":false},"repo":{"id":26275295,"name":"ka-lite","full_name":"anuragkanungo/ka-lite","owner":{"login":"anuragkanungo","id":4207886,"avatar_url":"https://avatars.githubusercontent.com/u/4207886?v=3","gravatar_id":"","url":"https://api.github.com/users/anuragkanungo","html_url":"https://github.com/anuragkanungo","followers_url":"https://api.github.com/users/anuragkanungo/followers","following_url":"https://api.github.com/users/anuragkanungo/following{/other_user}","gists_url":"https://api.github.com/users/anuragkanungo/gists{/gist_id}","starred_url":"https://api.github.com/users/anuragkanungo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuragkanungo/subscriptions","organizations_url":"https://api.github.com/users/anuragkanungo/orgs","repos_url":"https://api.github.com/users/anuragkanungo/repos","events_url":"https://api.github.com/users/anuragkanungo/events{/privacy}","received_events_url":"https://api.github.com/users/anuragkanungo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anuragkanungo/ka-lite","description":"KA Lite: lightweight web server for serving core Khan Academy content (videos and exercises) without needing internet connectivity","fork":true,"url":"https://api.github.com/repos/anuragkanungo/ka-lite","forks_url":"https://api.github.com/repos/anuragkanungo/ka-lite/forks","keys_url":"https://api.github.com/repos/anuragkanungo/ka-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anuragkanungo/ka-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anuragkanungo/ka-lite/teams","hooks_url":"https://api.github.com/repos/anuragkanungo/ka-lite/hooks","issue_events_url":"https://api.github.com/repos/anuragkanungo/ka-lite/issues/events{/number}","events_url":"https://api.github.com/repos/anuragkanungo/ka-lite/events","assignees_url":"https://api.github.com/repos/anuragkanungo/ka-lite/assignees{/user}","branches_url":"https://api.github.com/repos/anuragkanungo/ka-lite/branches{/branch}","tags_url":"https://api.github.com/repos/anuragkanungo/ka-lite/tags","blobs_url":"https://api.github.com/repos/anuragkanungo/ka-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anuragkanungo/ka-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anuragkanungo/ka-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/anuragkanungo/ka-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anuragkanungo/ka-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/anuragkanungo/ka-lite/languages","stargazers_url":"https://api.github.com/repos/anuragkanungo/ka-lite/stargazers","contributors_url":"https://api.github.com/repos/anuragkanungo/ka-lite/contributors","subscribers_url":"https://api.github.com/repos/anuragkanungo/ka-lite/subscribers","subscription_url":"https://api.github.com/repos/anuragkanungo/ka-lite/subscription","commits_url":"https://api.github.com/repos/anuragkanungo/ka-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/anuragkanungo/ka-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/anuragkanungo/ka-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/anuragkanungo/ka-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/anuragkanungo/ka-lite/contents/{+path}","compare_url":"https://api.github.com/repos/anuragkanungo/ka-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anuragkanungo/ka-lite/merges","archive_url":"https://api.github.com/repos/anuragkanungo/ka-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anuragkanungo/ka-lite/downloads","issues_url":"https://api.github.com/repos/anuragkanungo/ka-lite/issues{/number}","pulls_url":"https://api.github.com/repos/anuragkanungo/ka-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/anuragkanungo/ka-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/anuragkanungo/ka-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anuragkanungo/ka-lite/labels{/name}","releases_url":"https://api.github.com/repos/anuragkanungo/ka-lite/releases{/id}","created_at":"2014-11-06T15:09:41Z","updated_at":"2014-11-01T12:07:30Z","pushed_at":"2015-03-05T08:56:36Z","git_url":"git://github.com/anuragkanungo/ka-lite.git","ssh_url":"git@github.com:anuragkanungo/ka-lite.git","clone_url":"https://github.com/anuragkanungo/ka-lite.git","svn_url":"https://github.com/anuragkanungo/ka-lite","homepage":"https://learningequality.org/ka-lite/","size":142275,"stargazers_count":0,"watchers_count":0,"language":null,"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":"learningequality:develop","ref":"develop","sha":"799fbc6c00f7983389bc2b345e3af19308cef851","user":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"repo":{"id":5741125,"name":"ka-lite","full_name":"learningequality/ka-lite","owner":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learningequality/ka-lite","description":"KA Lite: lightweight web server for serving core Khan Academy content (videos and exercises) without needing internet connectivity","fork":false,"url":"https://api.github.com/repos/learningequality/ka-lite","forks_url":"https://api.github.com/repos/learningequality/ka-lite/forks","keys_url":"https://api.github.com/repos/learningequality/ka-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learningequality/ka-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learningequality/ka-lite/teams","hooks_url":"https://api.github.com/repos/learningequality/ka-lite/hooks","issue_events_url":"https://api.github.com/repos/learningequality/ka-lite/issues/events{/number}","events_url":"https://api.github.com/repos/learningequality/ka-lite/events","assignees_url":"https://api.github.com/repos/learningequality/ka-lite/assignees{/user}","branches_url":"https://api.github.com/repos/learningequality/ka-lite/branches{/branch}","tags_url":"https://api.github.com/repos/learningequality/ka-lite/tags","blobs_url":"https://api.github.com/repos/learningequality/ka-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learningequality/ka-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learningequality/ka-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/learningequality/ka-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learningequality/ka-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/learningequality/ka-lite/languages","stargazers_url":"https://api.github.com/repos/learningequality/ka-lite/stargazers","contributors_url":"https://api.github.com/repos/learningequality/ka-lite/contributors","subscribers_url":"https://api.github.com/repos/learningequality/ka-lite/subscribers","subscription_url":"https://api.github.com/repos/learningequality/ka-lite/subscription","commits_url":"https://api.github.com/repos/learningequality/ka-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/learningequality/ka-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/learningequality/ka-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/learningequality/ka-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/learningequality/ka-lite/contents/{+path}","compare_url":"https://api.github.com/repos/learningequality/ka-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learningequality/ka-lite/merges","archive_url":"https://api.github.com/repos/learningequality/ka-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learningequality/ka-lite/downloads","issues_url":"https://api.github.com/repos/learningequality/ka-lite/issues{/number}","pulls_url":"https://api.github.com/repos/learningequality/ka-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/learningequality/ka-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/learningequality/ka-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learningequality/ka-lite/labels{/name}","releases_url":"https://api.github.com/repos/learningequality/ka-lite/releases{/id}","created_at":"2012-09-09T20:01:40Z","updated_at":"2015-03-04T19:15:00Z","pushed_at":"2015-03-05T18:06:53Z","git_url":"git://github.com/learningequality/ka-lite.git","ssh_url":"git@github.com:learningequality/ka-lite.git","clone_url":"https://github.com/learningequality/ka-lite.git","svn_url":"https://github.com/learningequality/ka-lite","homepage":"https://learningequality.org/ka-lite/","size":217023,"stargazers_count":190,"watchers_count":190,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":207,"mirror_url":null,"open_issues_count":350,"forks":207,"open_issues":350,"watchers":190,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181"},"html":{"href":"https://github.com/learningequality/ka-lite/pull/3181"},"issue":{"href":"https://api.github.com/repos/learningequality/ka-lite/issues/3181"},"comments":{"href":"https://api.github.com/repos/learningequality/ka-lite/issues/3181/comments"},"review_comments":{"href":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181/comments"},"review_comment":{"href":"https://api.github.com/repos/learningequality/ka-lite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learningequality/ka-lite/pulls/3181/commits"},"statuses":{"href":"https://api.github.com/repos/learningequality/ka-lite/statuses/78d659056043cf6ab6150d6d51e4bb516fa7c395"}}}}