{"action":"opened","number":63,"pull_request":{"url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/63","id":95764127,"html_url":"https://github.com/DiMartinoXBMC/plugin.video.torrenter/pull/63","diff_url":"https://github.com/DiMartinoXBMC/plugin.video.torrenter/pull/63.diff","patch_url":"https://github.com/DiMartinoXBMC/plugin.video.torrenter/pull/63.patch","issue_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/issues/63","number":63,"state":"open","locked":false,"title":"Autopause on play fix","user":{"login":"kolosovski","id":2293660,"avatar_url":"https://avatars.githubusercontent.com/u/2293660?v=3","gravatar_id":"","url":"https://api.github.com/users/kolosovski","html_url":"https://github.com/kolosovski","followers_url":"https://api.github.com/users/kolosovski/followers","following_url":"https://api.github.com/users/kolosovski/following{/other_user}","gists_url":"https://api.github.com/users/kolosovski/gists{/gist_id}","starred_url":"https://api.github.com/users/kolosovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolosovski/subscriptions","organizations_url":"https://api.github.com/users/kolosovski/orgs","repos_url":"https://api.github.com/users/kolosovski/repos","events_url":"https://api.github.com/users/kolosovski/events{/privacy}","received_events_url":"https://api.github.com/users/kolosovski/received_events","type":"User","site_admin":false},"body":"I faced another issue with pause_onplay option. For some reasons it doesn't pause playback right after start. This reproduces on relatively large video files(about 3GB) - it doesn't pause the playback, but works well if I open a small 700MB episode - in this case playback pauses somewhat after 2 seconds.\r\nAfter some investigation I figured out that the xbmc.Play() class doesn't provide any method to check if we playing or the playback is paused. The isPlaying() method always returns 1 after playback was launched, no matter that it's on pause or not. So I added additional check \"(self.getTime() > 0)\" for assigning \"pause = False\" only if the playback is definitely started. Otherwise on the very first iteration \"xbmc.Player().pause()\" may unsuccessfully pause the playback maybe because it doesn't completely initiated yet and due to pause == False it will not try to pause again\r\nAlso I've reproduced the issue on both RPi based and windows based kodi installations. Please review and consider to merge these changes.","created_at":"2016-11-29T19:58:46Z","updated_at":"2016-11-29T19:58:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/63/commits","review_comments_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/63/comments","review_comment_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/issues/63/comments","statuses_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/statuses/329dac9c32858ab92b0ee62cba20d478c078c1dc","head":{"label":"kolosovski:autopause_fix","ref":"autopause_fix","sha":"329dac9c32858ab92b0ee62cba20d478c078c1dc","user":{"login":"kolosovski","id":2293660,"avatar_url":"https://avatars.githubusercontent.com/u/2293660?v=3","gravatar_id":"","url":"https://api.github.com/users/kolosovski","html_url":"https://github.com/kolosovski","followers_url":"https://api.github.com/users/kolosovski/followers","following_url":"https://api.github.com/users/kolosovski/following{/other_user}","gists_url":"https://api.github.com/users/kolosovski/gists{/gist_id}","starred_url":"https://api.github.com/users/kolosovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolosovski/subscriptions","organizations_url":"https://api.github.com/users/kolosovski/orgs","repos_url":"https://api.github.com/users/kolosovski/repos","events_url":"https://api.github.com/users/kolosovski/events{/privacy}","received_events_url":"https://api.github.com/users/kolosovski/received_events","type":"User","site_admin":false},"repo":{"id":74883625,"name":"plugin.video.torrenter","full_name":"kolosovski/plugin.video.torrenter","owner":{"login":"kolosovski","id":2293660,"avatar_url":"https://avatars.githubusercontent.com/u/2293660?v=3","gravatar_id":"","url":"https://api.github.com/users/kolosovski","html_url":"https://github.com/kolosovski","followers_url":"https://api.github.com/users/kolosovski/followers","following_url":"https://api.github.com/users/kolosovski/following{/other_user}","gists_url":"https://api.github.com/users/kolosovski/gists{/gist_id}","starred_url":"https://api.github.com/users/kolosovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolosovski/subscriptions","organizations_url":"https://api.github.com/users/kolosovski/orgs","repos_url":"https://api.github.com/users/kolosovski/repos","events_url":"https://api.github.com/users/kolosovski/events{/privacy}","received_events_url":"https://api.github.com/users/kolosovski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kolosovski/plugin.video.torrenter","description":"Kodi addon that helps you to watch videos from p2p torrent-networks, without full predownload (uses Torrent2HTTP, python-libtorrent or Ace Stream). It also can add, control torrents and play downloaded files with external torrent-client (uTorrent, Transmisson, Vuse, Deluge, qBittorrent) or python-libtorrent.","fork":true,"url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter","forks_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/forks","keys_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/teams","hooks_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/hooks","issue_events_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/issues/events{/number}","events_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/events","assignees_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/assignees{/user}","branches_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/branches{/branch}","tags_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/tags","blobs_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/git/refs{/sha}","trees_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/statuses/{sha}","languages_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/languages","stargazers_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/stargazers","contributors_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/contributors","subscribers_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/subscribers","subscription_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/subscription","commits_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/commits{/sha}","git_commits_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/git/commits{/sha}","comments_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/comments{/number}","issue_comment_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/issues/comments{/number}","contents_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/contents/{+path}","compare_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/merges","archive_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/downloads","issues_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/issues{/number}","pulls_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/pulls{/number}","milestones_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/milestones{/number}","notifications_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/labels{/name}","releases_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/releases{/id}","deployments_url":"https://api.github.com/repos/kolosovski/plugin.video.torrenter/deployments","created_at":"2016-11-27T11:33:25Z","updated_at":"2016-11-27T11:33:26Z","pushed_at":"2016-11-29T19:47:17Z","git_url":"git://github.com/kolosovski/plugin.video.torrenter.git","ssh_url":"git@github.com:kolosovski/plugin.video.torrenter.git","clone_url":"https://github.com/kolosovski/plugin.video.torrenter.git","svn_url":"https://github.com/kolosovski/plugin.video.torrenter","homepage":"https://forums.tvaddons.ag/addon-releases/29224-torrenter-v2.html","size":5030,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"DiMartinoXBMC:master","ref":"master","sha":"155c10cc91f6513bdef4a00d1ae6c4fbe16bf821","user":{"login":"DiMartinoXBMC","id":5096224,"avatar_url":"https://avatars.githubusercontent.com/u/5096224?v=3","gravatar_id":"","url":"https://api.github.com/users/DiMartinoXBMC","html_url":"https://github.com/DiMartinoXBMC","followers_url":"https://api.github.com/users/DiMartinoXBMC/followers","following_url":"https://api.github.com/users/DiMartinoXBMC/following{/other_user}","gists_url":"https://api.github.com/users/DiMartinoXBMC/gists{/gist_id}","starred_url":"https://api.github.com/users/DiMartinoXBMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiMartinoXBMC/subscriptions","organizations_url":"https://api.github.com/users/DiMartinoXBMC/orgs","repos_url":"https://api.github.com/users/DiMartinoXBMC/repos","events_url":"https://api.github.com/users/DiMartinoXBMC/events{/privacy}","received_events_url":"https://api.github.com/users/DiMartinoXBMC/received_events","type":"User","site_admin":false},"repo":{"id":29013090,"name":"plugin.video.torrenter","full_name":"DiMartinoXBMC/plugin.video.torrenter","owner":{"login":"DiMartinoXBMC","id":5096224,"avatar_url":"https://avatars.githubusercontent.com/u/5096224?v=3","gravatar_id":"","url":"https://api.github.com/users/DiMartinoXBMC","html_url":"https://github.com/DiMartinoXBMC","followers_url":"https://api.github.com/users/DiMartinoXBMC/followers","following_url":"https://api.github.com/users/DiMartinoXBMC/following{/other_user}","gists_url":"https://api.github.com/users/DiMartinoXBMC/gists{/gist_id}","starred_url":"https://api.github.com/users/DiMartinoXBMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiMartinoXBMC/subscriptions","organizations_url":"https://api.github.com/users/DiMartinoXBMC/orgs","repos_url":"https://api.github.com/users/DiMartinoXBMC/repos","events_url":"https://api.github.com/users/DiMartinoXBMC/events{/privacy}","received_events_url":"https://api.github.com/users/DiMartinoXBMC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DiMartinoXBMC/plugin.video.torrenter","description":"Kodi addon that helps you to watch videos from p2p torrent-networks, without full predownload (uses Torrent2HTTP, python-libtorrent or Ace Stream). It also can add, control torrents and play downloaded files with external torrent-client (uTorrent, Transmisson, Vuse, Deluge, qBittorrent) or python-libtorrent.","fork":false,"url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter","forks_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/forks","keys_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/teams","hooks_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/hooks","issue_events_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/issues/events{/number}","events_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/events","assignees_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/assignees{/user}","branches_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/branches{/branch}","tags_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/tags","blobs_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/git/refs{/sha}","trees_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/statuses/{sha}","languages_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/languages","stargazers_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/stargazers","contributors_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/contributors","subscribers_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/subscribers","subscription_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/subscription","commits_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/commits{/sha}","git_commits_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/git/commits{/sha}","comments_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/comments{/number}","issue_comment_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/issues/comments{/number}","contents_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/contents/{+path}","compare_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/merges","archive_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/downloads","issues_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/issues{/number}","pulls_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls{/number}","milestones_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/milestones{/number}","notifications_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/labels{/name}","releases_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/releases{/id}","deployments_url":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/deployments","created_at":"2015-01-09T11:06:25Z","updated_at":"2016-11-26T18:11:43Z","pushed_at":"2016-11-29T18:47:43Z","git_url":"git://github.com/DiMartinoXBMC/plugin.video.torrenter.git","ssh_url":"git@github.com:DiMartinoXBMC/plugin.video.torrenter.git","clone_url":"https://github.com/DiMartinoXBMC/plugin.video.torrenter.git","svn_url":"https://github.com/DiMartinoXBMC/plugin.video.torrenter","homepage":"https://forums.tvaddons.ag/addon-releases/29224-torrenter-v2.html","size":5121,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/63"},"html":{"href":"https://github.com/DiMartinoXBMC/plugin.video.torrenter/pull/63"},"issue":{"href":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/issues/63"},"comments":{"href":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/DiMartinoXBMC/plugin.video.torrenter/statuses/329dac9c32858ab92b0ee62cba20d478c078c1dc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"kolosovski"}}