Win How does addon get videos from websites?
#1
Hi, I am using a video addon named ditto from yocoldrain repo. it lists the channels from dittotv.com. i used urlgetter to get the following m3u8 url

http://dittotv.live-s.cdn.bitgravity.com...production

i tried using this url on a strm file. the video played well for some time and then it stopped. when i checked the url list from urlgette i found that the variables e= "1495721464" and h= "1221e757d2279e2a179606e773d098b6"
keep changing after sometime.

so if it keeps changing how the addon is able to get the continously changing url for a seamless playback?

im asking this because im trying to add that stream to iptv simple client. but i couldnt find a way to add the addon stream to it.

is there is anyway i can manually add the stream( which doesnt change the url token,,,to a strm file or a txt file with the help of some sort of code? thanks in advance
Reply
#2
(2017-05-25, 16:12)balnafasae Wrote: Hi, I am using a video addon named ditto from yocoldrain repo. it lists the channels from dittotv.com. i used urlgetter to get the following m3u8 url

http://dittotv.live-s.cdn.bitgravity.com...production

i tried using this url on a strm file. the video played well for some time and then it stopped. when i checked the url list from urlgette i found that the variables e= "1495721464" and h= "1221e757d2279e2a179606e773d098b6"
keep changing after sometime.

so if it keeps changing how the addon is able to get the continously changing url for a seamless playback?

im asking this because im trying to add that stream to iptv simple client. but i couldnt find a way to add the addon stream to it.

is there is anyway i can manually add the stream( which doesnt change to a strm file or a txt file with the help of some sort of code? thanks in advance


best watch this doesnt get deleted as it could be viewed as piracy

anyway the majority of streams are based on HLS, the way it sounds from what u explaining is that the site uses some kind of token expiry

without seeing the actual add on/website i could not tell you its format
Reply
#3
(2017-05-25, 19:15)markeymark Wrote:
(2017-05-25, 16:12)balnafasae Wrote: Hi, I am using a video addon named ditto from yocoldrain repo. it lists the channels from dittotv.com. i used urlgetter to get the following m3u8 url

http://dittotv.live-s.cdn.bitgravity.com...production

i tried using this url on a strm file. the video played well for some time and then it stopped. when i checked the url list from urlgette i found that the variables e= "1495721464" and h= "1221e757d2279e2a179606e773d098b6"
keep changing after sometime.

so if it keeps changing how the addon is able to get the continously changing url for a seamless playback?

im asking this because im trying to add that stream to iptv simple client. but i couldnt find a way to add the addon stream to it.

is there is anyway i can manually add the stream( which doesnt change to a strm file or a txt file with the help of some sort of code? thanks in advance


best watch this doesnt get deleted as it could be viewed as piracy

anyway the majority of streams are based on HLS, the way it sounds from what u explaining is that the site uses some kind of token expiry

without seeing the actual add on/website i could not tell you its format

thanks for the reply markeymark
the addon is ditto beta from yocold rain repo

https://github.com/YoColdRain/Ditto-Rain

the website is www.dittotv.com

http://www.dittotv.com/livetv/zee-tamil

these are the urls i get
http://dittotv.live-s.cdn.bitgravity.com...production

http://dittotv.live-s.cdn.bitgravity.com...production

http://dittotv.live-s.cdn.bitgravity.com...production


as you said yes they use some sort of token. can you please throw some light in this matter thanks in advance
Reply
#4
This would be better in addon development - moving it there
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#5
open channel url
Code:
http://www.dittotv.com/livetv/link?name=TvName
and get the m3u8 url from regex
Code:
html_find = re.compile('application/x-mpegurl.+?"(.+?)"', re.DOTALL).findall(r)[0]
and here what the variable name mean
e = expired time
h = hash (token)
Reply

Logout Mark Read Team Forum Stats Members Help
How does addon get videos from websites?0