{"action":"created","issue":{"url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/issues/9","repository_url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist","labels_url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/issues/9/comments","events_url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/issues/9/events","html_url":"https://github.com/stvhwrd/SmoothStreamsTV-playlist/issues/9","id":186735611,"number":9,"title":"Dictionary addition for working EPG","user":{"login":"MB004","id":23195753,"avatar_url":"https://avatars.githubusercontent.com/u/23195753?v=3","gravatar_id":"","url":"https://api.github.com/users/MB004","html_url":"https://github.com/MB004","followers_url":"https://api.github.com/users/MB004/followers","following_url":"https://api.github.com/users/MB004/following{/other_user}","gists_url":"https://api.github.com/users/MB004/gists{/gist_id}","starred_url":"https://api.github.com/users/MB004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MB004/subscriptions","organizations_url":"https://api.github.com/users/MB004/orgs","repos_url":"https://api.github.com/users/MB004/repos","events_url":"https://api.github.com/users/MB004/events{/privacy}","received_events_url":"https://api.github.com/users/MB004/received_events","type":"User","site_admin":false},"labels":[{"id":437208146,"url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":437208147,"url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":{"login":"stvhwrd","id":4117011,"avatar_url":"https://avatars.githubusercontent.com/u/4117011?v=3","gravatar_id":"","url":"https://api.github.com/users/stvhwrd","html_url":"https://github.com/stvhwrd","followers_url":"https://api.github.com/users/stvhwrd/followers","following_url":"https://api.github.com/users/stvhwrd/following{/other_user}","gists_url":"https://api.github.com/users/stvhwrd/gists{/gist_id}","starred_url":"https://api.github.com/users/stvhwrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stvhwrd/subscriptions","organizations_url":"https://api.github.com/users/stvhwrd/orgs","repos_url":"https://api.github.com/users/stvhwrd/repos","events_url":"https://api.github.com/users/stvhwrd/events{/privacy}","received_events_url":"https://api.github.com/users/stvhwrd/received_events","type":"User","site_admin":false},"assignees":[{"login":"stvhwrd","id":4117011,"avatar_url":"https://avatars.githubusercontent.com/u/4117011?v=3","gravatar_id":"","url":"https://api.github.com/users/stvhwrd","html_url":"https://github.com/stvhwrd","followers_url":"https://api.github.com/users/stvhwrd/followers","following_url":"https://api.github.com/users/stvhwrd/following{/other_user}","gists_url":"https://api.github.com/users/stvhwrd/gists{/gist_id}","starred_url":"https://api.github.com/users/stvhwrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stvhwrd/subscriptions","organizations_url":"https://api.github.com/users/stvhwrd/orgs","repos_url":"https://api.github.com/users/stvhwrd/repos","events_url":"https://api.github.com/users/stvhwrd/events{/privacy}","received_events_url":"https://api.github.com/users/stvhwrd/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-11-02T08:09:39Z","updated_at":"2016-11-06T18:49:11Z","closed_at":null,"body":"Hi,\r\n\r\nWould it be possible for you to insert a dictionary table into the code for '#EXTINF:-1,' as well?  And then the user can edit the table with the matching tvg-id tags. This would allow the script to output a working epg format for iptv simple client. For example the working epg output would need to look as follows:\r\n\r\n#EXTINF:-1 tvg-id=\"I16485.labs.zap2it.com\", 01 ESPNews \r\n#EXTINF:-1 tvg-id=\"I10179.labs.zap2it.com\", 02 ESPN \r\n\r\n(Where as the table allows for me to insert my tvg-id tags right before the comma of #EXTINF:-1,)\r\n\r\nThanks in advance if possible!\r\n"},"comment":{"url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/issues/comments/258701369","html_url":"https://github.com/stvhwrd/SmoothStreamsTV-playlist/issues/9#issuecomment-258701369","issue_url":"https://api.github.com/repos/stvhwrd/SmoothStreamsTV-playlist/issues/9","id":258701369,"user":{"login":"stvhwrd","id":4117011,"avatar_url":"https://avatars.githubusercontent.com/u/4117011?v=3","gravatar_id":"","url":"https://api.github.com/users/stvhwrd","html_url":"https://github.com/stvhwrd","followers_url":"https://api.github.com/users/stvhwrd/followers","following_url":"https://api.github.com/users/stvhwrd/following{/other_user}","gists_url":"https://api.github.com/users/stvhwrd/gists{/gist_id}","starred_url":"https://api.github.com/users/stvhwrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stvhwrd/subscriptions","organizations_url":"https://api.github.com/users/stvhwrd/orgs","repos_url":"https://api.github.com/users/stvhwrd/repos","events_url":"https://api.github.com/users/stvhwrd/events{/privacy}","received_events_url":"https://api.github.com/users/stvhwrd/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T18:49:11Z","updated_at":"2016-11-06T18:49:11Z","body":"Hi @MB004 @dbowles1975, thanks for your input.\r\n\r\nForgive my ignorance, but can you provide more information on what you'd like to see happening here?  The way I'm reading your question is that you would like a JSON-like dictionary of tvg-id tags, to be inserted at the correct index into the m3u8.  \r\n\r\nFor example, the dictionary would look like this (using your example):\r\n\r\n```python\r\ntvgDictionary = {\r\n'01': 'I16485.labs.zap2it.com',\r\n'02': 'I10179.labs.zap2it.com',\r\n...\r\n}\r\n```\r\n\r\nand [at the time of playlist creation](https://github.com/stvhwrd/SmoothStreamsTV-playlist/blob/master/sstv-playlist.py#L186), the `tvg-id` tags are inserted by index (channel number).\r\n\r\n```python\r\nfor channel in sorted(channelDictionary, key=lambda channel: int(channel)):\r\n    m3u8 += ('#EXTINF:-1, ' + 'tvg-id=\"' + tvgDictionary[channel] + '\", ' +\r\n            channel + ' ' + channelDictionary[channel] +\r\n            '\\n' + 'http://' + server +\r\n            '.smoothstreams.tv:9100/viewstvn/ch' + channel +\r\n            'q1.stream/playlist.m3u8?wmsAuthSign=' + authSign + '\\n')\r\n```\r\n\r\nresulting in a playlist looking like this:\r\n\r\n```sh\r\n#EXTM3U\r\n#EXTINF:-1, tvg-id=\"I16485.labs.zap2it.com\", 01 ESPNews\r\nhttp://dna.smoothstreams.tv:9100/viewstvn/ch01q1.stream/playlist.m3u8?wmsAuthSign=abcd1234efgh5678ijkl90==\r\n#EXTINF:-1, tvg-id=\"I10179.labs.zap2it.com\", 02 ESPN\r\nhttp://dna.smoothstreams.tv:9100/viewstvn/ch02q1.stream/playlist.m3u8?wmsAuthSign=abcd1234efgh5678ijkl90==\r\n\r\n```\r\n\r\nIs that what you're looking for?  If not, please clarify.  Thanks again for taking the time to submit a request like this.  Cheers!"}}
{"actor":{"display_login":"stvhwrd"}}