[SOLVED] api.ss-iptv.com

SS IPTV App for LG Smart TV discussion
Post Reply
ivopz
Ensign
Ensign
Posts: 5
Joined: 16 Apr 2017, 12:01
TV Model: TV UE40D6100
Bulgaria

[SOLVED] api.ss-iptv.com

Post by ivopz »

Hello,

I have been using your playlist editor to add channels to the SS-IPTV application. It works great.

My IPTV provider changes links often I have to manually go to your playlist editor and edit 50 links.
I have developed an automate way to grab my provider IPTV links and I want to integrate that with your API so I can have fresh list on TV with refresh on TV just.
I have noticed that using:
curl 'http://api.ss-iptv.com/bridge/' -H 'Origin: http://ss-iptv.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36' -H 'Content-type: application/x-www-form-urlencoded' -H 'Accept: */*' -H 'Referer: http://ss-iptv.com/en/users/playlist' -H 'Connection: keep-alive' --data 'p=XXXXXXXXXXXXXXX'
I can change the playlist. I can wipe it, I can restore backup I have with encoded data saved from browser. But I cannot automate it yet. I do not know how you encode the playlist in the data field where XXXXXXXXXXXXXXX stands. I know it is linked to the pairing number from the APP that I enter in your playlist editor and the beginning from this session id is always the same when I change playlist.
Please advise.
Last edited by ivopz on 17 Apr 2017, 23:05, edited 1 time in total.

User avatar
Eugene
Project Leader
Project Leader
Posts: 5620
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 18 times
Contact:
Russia

Re: api.ss-iptv.com

Post by Eugene »

Why do you need api for that? You can just use your grabber's link as external playlist to have always up-to-date playlist in the app.

ivopz
Ensign
Ensign
Posts: 5
Joined: 16 Apr 2017, 12:01
TV Model: TV UE40D6100
Bulgaria

Re: api.ss-iptv.com

Post by ivopz »

I have tried that but the list is Wowza m3u containing links to multiple m3u8 playlists. Could that be the problem ?
If I manually add m3u8 links to the playlist editor it works fine.
I can confirm the TV has access to the m3u file i tried to access, SamyGo curl confirmed download.

User avatar
Eugene
Project Leader
Project Leader
Posts: 5620
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 18 times
Contact:
Russia

Re: api.ss-iptv.com

Post by Eugene »

I don't know what is wowza m3u and why it has to be any problem with adding m3u8 links.

ivopz
Ensign
Ensign
Posts: 5
Joined: 16 Apr 2017, 12:01
TV Model: TV UE40D6100
Bulgaria

Re: api.ss-iptv.com

Post by ivopz »

Eugene wrote:I don't know what is wowza m3u and why it has to be any problem with adding m3u8 links.

I believe my IPTV provider uses https://www.wowza.com/products/streaming-engine.

In the playlist editor I add streams like that:
http://10.10.10.10/live/romatv.smil/pla ... =LN4wYHRS8

Content of file is as follows:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=764000,RESOLUTION=640x360
chunklist_w1028902837_b764000_slbul.m3u8?h=LN4wYHRS8

Content of the chunklist located at http://10.10.10.10:80/live/romatv.smil/ ... =LN4wYHRS8 :
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:61353
#EXT-X-KEY:METHOD=AES-128,URI="http://10.10.10.10/keys/key?wowzasessionid=1028902837&h=LN4wYHRS8"
#EXTINF:10.0,
media_w1028902837_b764000_slbul_61353.ts?h=LN4wYHRS8
#EXTINF:10.0,
media_w1028902837_b764000_slbul_61354.ts?h=LN4wYHRS8
#EXTINF:10.0,
media_w1028902837_b764000_slbul_61355.ts?h=LN4wYHRS8

After some time, their server provide me new link, for example:
http://10.10.10.10/live/romatv.smil/pla ... h=xXxxXxxX

And I need to update my playlist on SS-IPTV to be able to watch it, and I want to do that for all the channels in an instant cronjob.

Looking at the SS-IPTV Playlist editor.
bridge.js
line 3623 setContent: function(a, b, c, d) {
this.getProcessQueue(14, d, {
id: a,
source: b,
content: c
})
I can see 'c' contains the playlist itself. But I am not able to follow getProcessQueue and what it does after that. There is probably json uri encode and base64 encode or something similar.
Please advise.

User avatar
Eugene
Project Leader
Project Leader
Posts: 5620
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 18 times
Contact:
Russia

Re: api.ss-iptv.com

Post by Eugene »

ivopz wrote:Content of file is as follows:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=764000,RESOLUTION=640x360
chunklist_w1028902837_b764000_slbul.m3u8?h=LN4wYHRS8

Content of the chunklist located at http://10.10.10.10:80/live/romatv.smil/ ... =LN4wYHRS8 :
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:61353
#EXT-X-KEY:METHOD=AES-128,URI="http://10.10.10.10/keys/key?wowzasessionid=1028902837&h=LN4wYHRS8"
#EXTINF:10.0,
media_w1028902837_b764000_slbul_61353.ts?h=LN4wYHRS8
#EXTINF:10.0,
media_w1028902837_b764000_slbul_61354.ts?h=LN4wYHRS8
#EXTINF:10.0,
media_w1028902837_b764000_slbul_61355.ts?h=LN4wYHRS8

Why do you write it here??? It is absolutely useless information about hls structure.
App's api isn't opened, you cannot use it.
You may always have updated playlist on your device using External Playlists. External Playlists section doesn't receive separate links to the streams, you must write links to the playlists there. Here is the sequence how to solve your task:
  1. Retreive streams' urls usnig your script
  2. Generate playlist with links retreived at point 1 into playlist in M3U format
  3. Publish generated playlist on some external source with static address
  4. Add the link to published playlist into app's External Playlists section.
  5. Every time you need to update playlist, your script must just rewrite playlist published at point 3, then your TV will always have access to updated playlist.

ivopz
Ensign
Ensign
Posts: 5
Joined: 16 Apr 2017, 12:01
TV Model: TV UE40D6100
Bulgaria

Re: api.ss-iptv.com

Post by ivopz »

This is the first thing I did.
When I load the external playlist in SS-IPTV, it says "No location found". Meanwhile same .m3u generated playlist works perfect in Kodi PVR Simple IPTV Client.

And I posted the content of the m3u and m3u8 lists so you can imagine what is inside and let me know if chaining so many playlist may be the problem with using the External playlist feature.

The only workaround I can think of is hacking directly on the TV and changing external playlist if it is stored as file somewhere, and adding all links one per line as m3u8, because .m3u says no location found.

Dont get me wrong, If you say it works like that I believe you. But not in my case which has hash at the end of the links maybe that causes a problem when m3u8s are chained after m3u.


Problem solved.
I was generating #EXTINFO:0 type="stream" , XXXX
instead of #EXTINF:0 type="stream" , XXXX

Post Reply