GitHub PullRequestEvent at 2014-03-29 05:20:17
Repository: script.module.axel.downloader
Actor: Shani-08
Payload: {"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/2","id":14139944,"html_url":"https://github.com/Eldorados/script.module.axel.downloader/pull/2","diff_url":"https://github.com/Eldorados/script.module.axel.downloader/pull/2.diff","patch_url":"https://github.com/Eldorados/script.module.axel.downloader/pull/2.patch","issue_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/issues/2","number":2,"state":"open","title":"first beta","user":{"login":"Shani-08","id":2887080,"avatar_url":"https://avatars.githubusercontent.com/u/2887080?","gravatar_id":"58aa6b2ae9a1e60558aa01e32bb616ae","url":"https://api.github.com/users/Shani-08","html_url":"https://github.com/Shani-08","followers_url":"https://api.github.com/users/Shani-08/followers","following_url":"https://api.github.com/users/Shani-08/following{/other_user}","gists_url":"https://api.github.com/users/Shani-08/gists{/gist_id}","starred_url":"https://api.github.com/users/Shani-08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shani-08/subscriptions","organizations_url":"https://api.github.com/users/Shani-08/orgs","repos_url":"https://api.github.com/users/Shani-08/repos","events_url":"https://api.github.com/users/Shani-08/events{/privacy}","received_events_url":"https://api.github.com/users/Shani-08/received_events","type":"User","site_admin":false},"body":"Hi Eldorado,\r\nHere are the first beta changes. I have tried my best to keep the code readable.\r\ncontrolpanel.py: This will be the display area in Scripts to Manage the downloads and status etc.\r\ndefault.py: This is the service which loads the Proxy server.\r\nlib\\proxy: I have moved it to lib as it will become standard library for streaming proxy. This deal with client connections and return the stream data\r\nlib\\axel.py : This got classes like DownloadManager, Downloader and DownloadQueuedProcessor\r\ndownload.py, this is not in use so should be deleted.\r\ncommon.py. contain common routines.\r\nOne thing i haven't done is remove the xbmc objects, like common plugin and logging etc.This is required to make axel.py and proxy xbmc independent.\r\n\r\nCalling mechanism.\r\n\r\n    import proxy\r\n    axelhelper =  proxy.ProxyHelper()\r\n    link = axelhelper.create_proxy_url(file_link);#more parameters here\r\n    xbmc.Player(xbmc.PLAYER_CORE_AUTO).play(link)\r\n\r\n\r\ncreate_proxy_url: supports some parameters, more will be added here\r\ndef create_proxy_url(self,url,downloadmode=1,keep_file=False,connections=2):\r\ndownloadmode=1=Stream, 2 = Download\r\nkeep_file = After streaming, should the file be kept\r\nconnections: number of connections to use for download\r\n\r\nThere are going to be some bugs so need to make it rock solid. The video stop is working with a logic, we will see if that create any problems otherwise we go back to stop signal from player like you mention.\r\n\r\nThanks\r\n","created_at":"2014-03-29T05:20:16Z","updated_at":"2014-03-29T05:20:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/issues/2/comments","statuses_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/statuses/e1eea5e732076c575bd937be3aaebe72914d0453","head":{"label":"Shani-08:master","ref":"master","sha":"e1eea5e732076c575bd937be3aaebe72914d0453","user":{"login":"Shani-08","id":2887080,"avatar_url":"https://avatars.githubusercontent.com/u/2887080?","gravatar_id":"58aa6b2ae9a1e60558aa01e32bb616ae","url":"https://api.github.com/users/Shani-08","html_url":"https://github.com/Shani-08","followers_url":"https://api.github.com/users/Shani-08/followers","following_url":"https://api.github.com/users/Shani-08/following{/other_user}","gists_url":"https://api.github.com/users/Shani-08/gists{/gist_id}","starred_url":"https://api.github.com/users/Shani-08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shani-08/subscriptions","organizations_url":"https://api.github.com/users/Shani-08/orgs","repos_url":"https://api.github.com/users/Shani-08/repos","events_url":"https://api.github.com/users/Shani-08/events{/privacy}","received_events_url":"https://api.github.com/users/Shani-08/received_events","type":"User","site_admin":false},"repo":{"id":17764985,"name":"script.module.axel.downloader","full_name":"Shani-08/script.module.axel.downloader","owner":{"login":"Shani-08","id":2887080,"avatar_url":"https://avatars.githubusercontent.com/u/2887080?","gravatar_id":"58aa6b2ae9a1e60558aa01e32bb616ae","url":"https://api.github.com/users/Shani-08","html_url":"https://github.com/Shani-08","followers_url":"https://api.github.com/users/Shani-08/followers","following_url":"https://api.github.com/users/Shani-08/following{/other_user}","gists_url":"https://api.github.com/users/Shani-08/gists{/gist_id}","starred_url":"https://api.github.com/users/Shani-08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shani-08/subscriptions","organizations_url":"https://api.github.com/users/Shani-08/orgs","repos_url":"https://api.github.com/users/Shani-08/repos","events_url":"https://api.github.com/users/Shani-08/events{/privacy}","received_events_url":"https://api.github.com/users/Shani-08/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shani-08/script.module.axel.downloader","description":"Download Accelerator - Use multiple connections to download file faster","fork":true,"url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader","forks_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/forks","keys_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/teams","hooks_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/hooks","issue_events_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/issues/events{/number}","events_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/events","assignees_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/assignees{/user}","branches_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/branches{/branch}","tags_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/tags","blobs_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/statuses/{sha}","languages_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/languages","stargazers_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/stargazers","contributors_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/contributors","subscribers_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/subscribers","subscription_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/subscription","commits_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/issues/comments/{number}","contents_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/contents/{+path}","compare_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/merges","archive_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/downloads","issues_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/issues{/number}","pulls_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/pulls{/number}","milestones_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/milestones{/number}","notifications_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/labels{/name}","releases_url":"https://api.github.com/repos/Shani-08/script.module.axel.downloader/releases{/id}","created_at":"2014-03-15T00:45:13Z","updated_at":"2014-03-29T05:20:16Z","pushed_at":"2014-03-29T05:02:55Z","git_url":"git://github.com/Shani-08/script.module.axel.downloader.git","ssh_url":"git@github.com:Shani-08/script.module.axel.downloader.git","clone_url":"https://github.com/Shani-08/script.module.axel.downloader.git","svn_url":"https://github.com/Shani-08/script.module.axel.downloader","homepage":null,"size":131,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"Eldorados:master","ref":"master","sha":"3ed381ed7bd17fce82a9df9126e987e0aab37a24","user":{"login":"Eldorados","id":732342,"avatar_url":"https://avatars.githubusercontent.com/u/732342?","gravatar_id":"48e0fe54d376e63d60e4a336a2285762","url":"https://api.github.com/users/Eldorados","html_url":"https://github.com/Eldorados","followers_url":"https://api.github.com/users/Eldorados/followers","following_url":"https://api.github.com/users/Eldorados/following{/other_user}","gists_url":"https://api.github.com/users/Eldorados/gists{/gist_id}","starred_url":"https://api.github.com/users/Eldorados/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eldorados/subscriptions","organizations_url":"https://api.github.com/users/Eldorados/orgs","repos_url":"https://api.github.com/users/Eldorados/repos","events_url":"https://api.github.com/users/Eldorados/events{/privacy}","received_events_url":"https://api.github.com/users/Eldorados/received_events","type":"User","site_admin":false},"repo":{"id":9896596,"name":"script.module.axel.downloader","full_name":"Eldorados/script.module.axel.downloader","owner":{"login":"Eldorados","id":732342,"avatar_url":"https://avatars.githubusercontent.com/u/732342?","gravatar_id":"48e0fe54d376e63d60e4a336a2285762","url":"https://api.github.com/users/Eldorados","html_url":"https://github.com/Eldorados","followers_url":"https://api.github.com/users/Eldorados/followers","following_url":"https://api.github.com/users/Eldorados/following{/other_user}","gists_url":"https://api.github.com/users/Eldorados/gists{/gist_id}","starred_url":"https://api.github.com/users/Eldorados/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eldorados/subscriptions","organizations_url":"https://api.github.com/users/Eldorados/orgs","repos_url":"https://api.github.com/users/Eldorados/repos","events_url":"https://api.github.com/users/Eldorados/events{/privacy}","received_events_url":"https://api.github.com/users/Eldorados/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Eldorados/script.module.axel.downloader","description":"Download Accelerator - Use multiple connections to download file faster","fork":false,"url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader","forks_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/forks","keys_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/teams","hooks_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/hooks","issue_events_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/issues/events{/number}","events_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/events","assignees_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/assignees{/user}","branches_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/branches{/branch}","tags_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/tags","blobs_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/git/refs{/sha}","trees_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/statuses/{sha}","languages_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/languages","stargazers_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/stargazers","contributors_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/contributors","subscribers_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/subscribers","subscription_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/subscription","commits_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/commits{/sha}","git_commits_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/git/commits{/sha}","comments_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/comments{/number}","issue_comment_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/issues/comments/{number}","contents_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/contents/{+path}","compare_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/merges","archive_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/downloads","issues_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/issues{/number}","pulls_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls{/number}","milestones_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/milestones{/number}","notifications_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/labels{/name}","releases_url":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/releases{/id}","created_at":"2013-05-06T20:49:18Z","updated_at":"2013-11-28T17:45:50Z","pushed_at":"2013-05-08T16:23:50Z","git_url":"git://github.com/Eldorados/script.module.axel.downloader.git","ssh_url":"git@github.com:Eldorados/script.module.axel.downloader.git","clone_url":"https://github.com/Eldorados/script.module.axel.downloader.git","svn_url":"https://github.com/Eldorados/script.module.axel.downloader","homepage":null,"size":127,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":2,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/2"},"html":{"href":"https://github.com/Eldorados/script.module.axel.downloader/pull/2"},"issue":{"href":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/issues/2"},"comments":{"href":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Eldorados/script.module.axel.downloader/statuses/e1eea5e732076c575bd937be3aaebe72914d0453"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":9,"additions":989,"deletions":355,"changed_files":8}}