{"action":"created","issue":{"url":"https://api.github.com/repos/kodi-pvr/pvr.stalker/issues/32","labels_url":"https://api.github.com/repos/kodi-pvr/pvr.stalker/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/kodi-pvr/pvr.stalker/issues/32/comments","events_url":"https://api.github.com/repos/kodi-pvr/pvr.stalker/issues/32/events","html_url":"https://github.com/kodi-pvr/pvr.stalker/issues/32","id":111502020,"number":32,"title":"Support for matrix on stalker?","user":{"login":"cchalk","id":9144693,"avatar_url":"https://avatars.githubusercontent.com/u/9144693?v=3","gravatar_id":"","url":"https://api.github.com/users/cchalk","html_url":"https://github.com/cchalk","followers_url":"https://api.github.com/users/cchalk/followers","following_url":"https://api.github.com/users/cchalk/following{/other_user}","gists_url":"https://api.github.com/users/cchalk/gists{/gist_id}","starred_url":"https://api.github.com/users/cchalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cchalk/subscriptions","organizations_url":"https://api.github.com/users/cchalk/orgs","repos_url":"https://api.github.com/users/cchalk/repos","events_url":"https://api.github.com/users/cchalk/events{/privacy}","received_events_url":"https://api.github.com/users/cchalk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T21:57:01Z","updated_at":"2015-10-24T08:51:15Z","closed_at":null,"body":"Hi, is it possible for pvr.stalker to support matrix channels?\r\n\r\nThese seem to be some kind of playlist send by the stalker server using matrix.php?\r\n\r\n```\r\nDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED\r\n23:43:12 T:140439944402688  NOTICE: Thread DVDPlayer start, auto delete: false\r\n23:43:12 T:140439944402688  NOTICE: Creating InputStream\r\n23:43:12 T:140439944402688   ERROR: Problem accessing the DNS. (addr: matrix)\r\n23:43:12 T:140439944402688   ERROR: CDVDInputStreamPVRManager::Open - error opening [rtmp://matrix/17]\r\n23:43:12 T:140439944402688   ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All channels/pvr.stalker_1614180638.pvr]\r\n23:43:12 T:140439944402688  NOTICE: CDVDPlayer::OnExit()\r\n23:43:12 T:140441834076160  NOTICE: CDVDPlayer::CloseFile()\r\n23:43:12 T:140441834076160  NOTICE: DVDPlayer: waiting for threads to exit\r\n23:43:12 T:140441834076160  NOTICE: DVDPlayer: finished waiting\r\n23:43:12 T:140441834076160  NOTICE: CDVDPlayer::CloseFile()\r\n23:43:12 T:140441834076160  NOTICE: DVDPlayer: waiting for threads to exit\r\n23:43:12 T:140441834076160  NOTICE: DVDPlayer: finished waiting\r\n```\r\n\r\nThis is using a paid IPTV provider. Using the plugin.video.stalker plugin I am able to play these channels.\r\n\r\nplugin.video.stalker has the following in their load_channels.py:\r\n\r\n```\r\ndef retriveUrl(portal_mac, url, serial, channel, tmp):\r\n\t\r\n\tsetMac(portal_mac);\r\n\tsetSerialNumber(serial);\r\n\t\t\r\n\tif 'matrix' in channel:\r\n\t\treturn retrieve_matrixUrl(url, channel);\r\n\t\t\r\n\telse:\r\n\t\treturn retrive_defaultUrl(url, channel, tmp);\r\n```\r\n\r\nand\r\n\r\n```\r\ndef retrieve_matrixUrl(url, channel):\r\n\r\n\tchannel = channel.split('/');\r\n\tchannel = channel[len(channel) -1];\r\n\t\r\n\turl += '/stalker_portal/server/api/matrix.php?channel=' + channel + '&mac=' + mac;\r\n\t\r\n\t# RETRIEVE THE 1 EXTM3U\r\n\trequest = urllib2.Request(url)\r\n\tresponse  = urllib2.urlopen(request);\r\n\tdata = response.read().decode(\"utf-8\");\r\n\r\n\t_s1 = data.split(' ');\t\r\n\tdata = _s1[0];\r\n\tif len(_s1)>1:\r\n\t\tdata = _s1[len(_s1) -1];\r\n\t\r\n\treturn data;\r\n```\r\n\r\nSee load_channels.py lines 524-533 and lines 588-605 [here.](https://github.com/esxbr/plugin.video.stalker/blob/03da3e22e79fafd49df02a1c65091f744f587564/load_channels.py)\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/kodi-pvr/pvr.stalker/issues/comments/150777376","html_url":"https://github.com/kodi-pvr/pvr.stalker/issues/32#issuecomment-150777376","issue_url":"https://api.github.com/repos/kodi-pvr/pvr.stalker/issues/32","id":150777376,"user":{"login":"kenji123","id":1494784,"avatar_url":"https://avatars.githubusercontent.com/u/1494784?v=3","gravatar_id":"","url":"https://api.github.com/users/kenji123","html_url":"https://github.com/kenji123","followers_url":"https://api.github.com/users/kenji123/followers","following_url":"https://api.github.com/users/kenji123/following{/other_user}","gists_url":"https://api.github.com/users/kenji123/gists{/gist_id}","starred_url":"https://api.github.com/users/kenji123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenji123/subscriptions","organizations_url":"https://api.github.com/users/kenji123/orgs","repos_url":"https://api.github.com/users/kenji123/repos","events_url":"https://api.github.com/users/kenji123/events{/privacy}","received_events_url":"https://api.github.com/users/kenji123/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T08:51:15Z","updated_at":"2015-10-24T08:51:15Z","body":"I'll try to implementing this."}}