{"action":"created","comment":{"url":"https://api.github.com/repos/xbmc/repo-plugins/pulls/comments/212248613","pull_request_review_id":148837137,"id":212248613,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjI0ODYxMw==","diff_hunk":"@@ -7,6 +7,75 @@\n from ...items import VideoItem, AudioItem, UriItem\n from ... import utils\n from . import info_labels\n+from ...items import utils as item_utils\n+\n+\n+def to_play_item(context, play_item):\n+    context.log_debug('Converting PlayItem |%s|' % play_item.get_uri())\n+\n+    major_version = context.get_system_version().get_version()[0]\n+    thumb = play_item.get_image() if play_item.get_image() else u'DefaultVideo.png'\n+    title = play_item.get_title() if play_item.get_title() else play_item.get_name()\n+    fanart = ''\n+    settings = context.get_settings()\n+    if major_version > 17:\n+        list_item = xbmcgui.ListItem(label=utils.to_unicode(title), offscreen=True)\n+    else:\n+        list_item = xbmcgui.ListItem(label=utils.to_unicode(title))\n+\n+    list_item.setProperty(u'IsPlayable', u'true')\n+\n+    if play_item.get_fanart() and settings.show_fanart():\n+        fanart = play_item.get_fanart()\n+    if major_version <= 12:\n+        list_item.setIconImage(thumb)\n+        list_item.setProperty(\"Fanart_Image\", fanart)\n+    elif major_version <= 15:\n+        list_item.setArt({'thumb': thumb, 'fanart': fanart})\n+        list_item.setIconImage(thumb)\n+    else:\n+        list_item.setArt({'icon': thumb, 'thumb': thumb, 'fanart': fanart})\n+\n+    if not play_item.use_dash() and not settings.is_support_alternative_player_enabled() and \\\n+            play_item.get_headers() and play_item.get_uri().startswith('http'):\n+        play_item.set_uri(play_item.get_uri() + '|' + play_item.get_headers())\n+\n+    list_item.setProperty('inputstreamaddon', '')","path":"plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_items.py","position":37,"original_position":37,"commit_id":"3cd6520a3457d88f9298c7ef3ae504ee5e92d4d3","original_commit_id":"3cd6520a3457d88f9298c7ef3ae504ee5e92d4d3","user":{"login":"enen92","id":7375276,"node_id":"MDQ6VXNlcjczNzUyNzY=","avatar_url":"https://avatars3.githubusercontent.com/u/7375276?v=4","gravatar_id":"","url":"https://api.github.com/users/enen92","html_url":"https://github.com/enen92","followers_url":"https://api.github.com/users/enen92/followers","following_url":"https://api.github.com/users/enen92/following{/other_user}","gists_url":"https://api.github.com/users/enen92/gists{/gist_id}","starred_url":"https://api.github.com/users/enen92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enen92/subscriptions","organizations_url":"https://api.github.com/users/enen92/orgs","repos_url":"https://api.github.com/users/enen92/repos","events_url":"https://api.github.com/users/enen92/events{/privacy}","received_events_url":"https://api.github.com/users/enen92/received_events","type":"User","site_admin":false},"body":"is this needed?","created_at":"2018-08-23T09:52:38Z","updated_at":"2018-08-23T09:52:38Z","html_url":"https://github.com/xbmc/repo-plugins/pull/2001#discussion_r212248613","pull_request_url":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/xbmc/repo-plugins/pulls/comments/212248613"},"html":{"href":"https://github.com/xbmc/repo-plugins/pull/2001#discussion_r212248613"},"pull_request":{"href":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001"}}},"pull_request":{"url":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001","id":210185892,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMTg1ODky","html_url":"https://github.com/xbmc/repo-plugins/pull/2001","diff_url":"https://github.com/xbmc/repo-plugins/pull/2001.diff","patch_url":"https://github.com/xbmc/repo-plugins/pull/2001.patch","issue_url":"https://api.github.com/repos/xbmc/repo-plugins/issues/2001","number":2001,"state":"open","locked":false,"title":"[plugin.video.youtube] v6.1.1","user":{"login":"anxdpanic","id":17665050,"node_id":"MDQ6VXNlcjE3NjY1MDUw","avatar_url":"https://avatars2.githubusercontent.com/u/17665050?v=4","gravatar_id":"","url":"https://api.github.com/users/anxdpanic","html_url":"https://github.com/anxdpanic","followers_url":"https://api.github.com/users/anxdpanic/followers","following_url":"https://api.github.com/users/anxdpanic/following{/other_user}","gists_url":"https://api.github.com/users/anxdpanic/gists{/gist_id}","starred_url":"https://api.github.com/users/anxdpanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anxdpanic/subscriptions","organizations_url":"https://api.github.com/users/anxdpanic/orgs","repos_url":"https://api.github.com/users/anxdpanic/repos","events_url":"https://api.github.com/users/anxdpanic/events{/privacy}","received_events_url":"https://api.github.com/users/anxdpanic/received_events","type":"User","site_admin":false},"body":"### Description\r\nChangelog: https://github.com/jdf76/plugin.video.youtube/blob/6.x.x/changelog.txt#L1-L38\r\n<!--- Provide a short summary of submitted add-on in case it's a new addition. -->\r\n<!--- If it's plugin update only highlight biggest changes if needed. -->\r\n<!--- Make sure you follow the checklist below before finalizing your pull-request. -->\r\n### Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply like this: [X] -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the [add-on rules](http://kodi.wiki/view/Add-on_rules) and [piracy stance](http://kodi.wiki/view/Official:Forum_rules#Piracy_Policy) of this project. \r\n- [x] I have read the [CONTRIBUTING](https://github.com/xbmc/repo-plugins/blob/master/CONTRIBUTING.md) document\r\n- [x] Each add-on submission should be a single commit with using the following style: [plugin.video.foo] v1.0.0\r\n\r\nAdditional information :\r\n- Submitting your add-on to this specific branch makes it available to any Kodi version equal or higher than the branch name with the applicable Kodi dependencies limits.\r\n- [add-on development](http://kodi.wiki/view/Add-on_development) wiki page.\r\n- Kodi [pydocs](http://kodi.wiki/view/PyDocs) provide information about the Python API\r\n- [PEP8](https://www.python.org/dev/peps/pep-0008/) codingstyle which is considered best practice but not mandatory.\r\n- This add-on repository has automated code guideline check which could help you improve your coding. You can find the results of these check at [Codacy](https://www.codacy.com/app/Kodi/repo-plugins/dashboard). You can create your own account as well to continuously monitor your python coding before submitting to repo.\r\n- Development questions can be asked in the [add-on development](http://forum.kodi.tv/forumdisplay.php?fid=26) section on the Kodi forum.\r\n","created_at":"2018-08-22T16:05:05Z","updated_at":"2018-08-23T09:52:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10bf88187cdac00ed466065d9d3cc5dbab9ed788","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001/commits","review_comments_url":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001/comments","review_comment_url":"https://api.github.com/repos/xbmc/repo-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xbmc/repo-plugins/issues/2001/comments","statuses_url":"https://api.github.com/repos/xbmc/repo-plugins/statuses/3cd6520a3457d88f9298c7ef3ae504ee5e92d4d3","head":{"label":"anxdpanic:isengard","ref":"isengard","sha":"3cd6520a3457d88f9298c7ef3ae504ee5e92d4d3","user":{"login":"anxdpanic","id":17665050,"node_id":"MDQ6VXNlcjE3NjY1MDUw","avatar_url":"https://avatars2.githubusercontent.com/u/17665050?v=4","gravatar_id":"","url":"https://api.github.com/users/anxdpanic","html_url":"https://github.com/anxdpanic","followers_url":"https://api.github.com/users/anxdpanic/followers","following_url":"https://api.github.com/users/anxdpanic/following{/other_user}","gists_url":"https://api.github.com/users/anxdpanic/gists{/gist_id}","starred_url":"https://api.github.com/users/anxdpanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anxdpanic/subscriptions","organizations_url":"https://api.github.com/users/anxdpanic/orgs","repos_url":"https://api.github.com/users/anxdpanic/repos","events_url":"https://api.github.com/users/anxdpanic/events{/privacy}","received_events_url":"https://api.github.com/users/anxdpanic/received_events","type":"User","site_admin":false},"repo":{"id":118764063,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg3NjQwNjM=","name":"repo-plugins","full_name":"anxdpanic/repo-plugins","owner":{"login":"anxdpanic","id":17665050,"node_id":"MDQ6VXNlcjE3NjY1MDUw","avatar_url":"https://avatars2.githubusercontent.com/u/17665050?v=4","gravatar_id":"","url":"https://api.github.com/users/anxdpanic","html_url":"https://github.com/anxdpanic","followers_url":"https://api.github.com/users/anxdpanic/followers","following_url":"https://api.github.com/users/anxdpanic/following{/other_user}","gists_url":"https://api.github.com/users/anxdpanic/gists{/gist_id}","starred_url":"https://api.github.com/users/anxdpanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anxdpanic/subscriptions","organizations_url":"https://api.github.com/users/anxdpanic/orgs","repos_url":"https://api.github.com/users/anxdpanic/repos","events_url":"https://api.github.com/users/anxdpanic/events{/privacy}","received_events_url":"https://api.github.com/users/anxdpanic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anxdpanic/repo-plugins","description":"Official source repository for Kodi plugin add-ons","fork":true,"url":"https://api.github.com/repos/anxdpanic/repo-plugins","forks_url":"https://api.github.com/repos/anxdpanic/repo-plugins/forks","keys_url":"https://api.github.com/repos/anxdpanic/repo-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anxdpanic/repo-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anxdpanic/repo-plugins/teams","hooks_url":"https://api.github.com/repos/anxdpanic/repo-plugins/hooks","issue_events_url":"https://api.github.com/repos/anxdpanic/repo-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/anxdpanic/repo-plugins/events","assignees_url":"https://api.github.com/repos/anxdpanic/repo-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/anxdpanic/repo-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/anxdpanic/repo-plugins/tags","blobs_url":"https://api.github.com/repos/anxdpanic/repo-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anxdpanic/repo-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anxdpanic/repo-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/anxdpanic/repo-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anxdpanic/repo-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/anxdpanic/repo-plugins/languages","stargazers_url":"https://api.github.com/repos/anxdpanic/repo-plugins/stargazers","contributors_url":"https://api.github.com/repos/anxdpanic/repo-plugins/contributors","subscribers_url":"https://api.github.com/repos/anxdpanic/repo-plugins/subscribers","subscription_url":"https://api.github.com/repos/anxdpanic/repo-plugins/subscription","commits_url":"https://api.github.com/repos/anxdpanic/repo-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/anxdpanic/repo-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/anxdpanic/repo-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/anxdpanic/repo-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/anxdpanic/repo-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/anxdpanic/repo-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anxdpanic/repo-plugins/merges","archive_url":"https://api.github.com/repos/anxdpanic/repo-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anxdpanic/repo-plugins/downloads","issues_url":"https://api.github.com/repos/anxdpanic/repo-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/anxdpanic/repo-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/anxdpanic/repo-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/anxdpanic/repo-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anxdpanic/repo-plugins/labels{/name}","releases_url":"https://api.github.com/repos/anxdpanic/repo-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/anxdpanic/repo-plugins/deployments","created_at":"2018-01-24T12:43:28Z","updated_at":"2018-01-17T19:38:30Z","pushed_at":"2018-08-22T18:07:14Z","git_url":"git://github.com/anxdpanic/repo-plugins.git","ssh_url":"git@github.com:anxdpanic/repo-plugins.git","clone_url":"https://github.com/anxdpanic/repo-plugins.git","svn_url":"https://github.com/anxdpanic/repo-plugins","homepage":"","size":529362,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xbmc:isengard","ref":"isengard","sha":"e59a3f0963e763fff4408cb0416f62574336a82a","user":{"login":"xbmc","id":199122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTEyMg==","avatar_url":"https://avatars2.githubusercontent.com/u/199122?v=4","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"repo":{"id":25118538,"node_id":"MDEwOlJlcG9zaXRvcnkyNTExODUzOA==","name":"repo-plugins","full_name":"xbmc/repo-plugins","owner":{"login":"xbmc","id":199122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTEyMg==","avatar_url":"https://avatars2.githubusercontent.com/u/199122?v=4","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xbmc/repo-plugins","description":"Official source repository for Kodi plugin add-ons","fork":false,"url":"https://api.github.com/repos/xbmc/repo-plugins","forks_url":"https://api.github.com/repos/xbmc/repo-plugins/forks","keys_url":"https://api.github.com/repos/xbmc/repo-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xbmc/repo-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xbmc/repo-plugins/teams","hooks_url":"https://api.github.com/repos/xbmc/repo-plugins/hooks","issue_events_url":"https://api.github.com/repos/xbmc/repo-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/xbmc/repo-plugins/events","assignees_url":"https://api.github.com/repos/xbmc/repo-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/xbmc/repo-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/xbmc/repo-plugins/tags","blobs_url":"https://api.github.com/repos/xbmc/repo-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xbmc/repo-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xbmc/repo-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/xbmc/repo-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xbmc/repo-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/xbmc/repo-plugins/languages","stargazers_url":"https://api.github.com/repos/xbmc/repo-plugins/stargazers","contributors_url":"https://api.github.com/repos/xbmc/repo-plugins/contributors","subscribers_url":"https://api.github.com/repos/xbmc/repo-plugins/subscribers","subscription_url":"https://api.github.com/repos/xbmc/repo-plugins/subscription","commits_url":"https://api.github.com/repos/xbmc/repo-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/xbmc/repo-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/xbmc/repo-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/xbmc/repo-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/xbmc/repo-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/xbmc/repo-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xbmc/repo-plugins/merges","archive_url":"https://api.github.com/repos/xbmc/repo-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xbmc/repo-plugins/downloads","issues_url":"https://api.github.com/repos/xbmc/repo-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/xbmc/repo-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/xbmc/repo-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/xbmc/repo-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xbmc/repo-plugins/labels{/name}","releases_url":"https://api.github.com/repos/xbmc/repo-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/xbmc/repo-plugins/deployments","created_at":"2014-10-12T12:17:54Z","updated_at":"2018-08-08T17:34:55Z","pushed_at":"2018-08-22T23:19:25Z","git_url":"git://github.com/xbmc/repo-plugins.git","ssh_url":"git@github.com:xbmc/repo-plugins.git","clone_url":"https://github.com/xbmc/repo-plugins.git","svn_url":"https://github.com/xbmc/repo-plugins","homepage":"","size":646106,"stargazers_count":58,"watchers_count":58,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":262,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":262,"open_issues":6,"watchers":58,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001"},"html":{"href":"https://github.com/xbmc/repo-plugins/pull/2001"},"issue":{"href":"https://api.github.com/repos/xbmc/repo-plugins/issues/2001"},"comments":{"href":"https://api.github.com/repos/xbmc/repo-plugins/issues/2001/comments"},"review_comments":{"href":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001/comments"},"review_comment":{"href":"https://api.github.com/repos/xbmc/repo-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xbmc/repo-plugins/pulls/2001/commits"},"statuses":{"href":"https://api.github.com/repos/xbmc/repo-plugins/statuses/3cd6520a3457d88f9298c7ef3ae504ee5e92d4d3"}},"author_association":"NONE"}}
{"actor":{"display_login":"enen92"}}