mbebe / blomqvist

blomqvist
GNU General Public License v3.0
154 stars 55 forks source link

Sportowa-Tel erium host changed (again) #362

Closed sviet2k closed 4 years ago

sviet2k commented 4 years ago

Hi @mbebe,

I would like to let you know the Tel erium host is changed then the V2.0 fails to resolve. I debugged in chrome and see the json url return empty when I tried to re-send it with same header, cookies ....

Thank you.

mbebe commented 4 years ago

Please check again, right now is ok with ver. 2.0

sviet2k commented 4 years ago

Hi @mbebe,

Please find in the log with some debug in mydecode for telerium.

ht tps://paste bin.com/GHkKs1wn

I just tried WNBA Basketball Chicago Sky vs Indiana Fever and it cannot play. I tested it on my phone and my tablet. But I can play the game directly from the web on my PC.

Thanks @mbebe

Kodi log: htt ps://paste bin.com/s2UX3U8A

mbebe commented 4 years ago

Hi, please replace orginal mydecode.py with this one >> xxxxxxxxxxxxxxx , and please try again, and send me again log file. There should be : @#@last-modifiedlast-modified , @#@date_time_objdate_time_obj: and @#@tstampnowtstampnowtstampnow: edit: this one is correct: https://anonfiles.com/jbccF6O6o0/mydecode_py

sviet2k commented 4 years ago

Hi @mbebe,

I tested it with "Football Nice vs Lens" Link 3 and it does not work. Here is the log (I am sorry I added some debug info) https://paste bin.com/YMFvC7VJ

Again thanks a lot for your work.

mbebe commented 4 years ago

There's something wrong: @#@date_time_objdate_time_obj: 2020-08-24 18:38:45 @#@tstampnowtstampnowtstampnow: 1598308725000 But this timestamp is wrong, it's for 2020-08-25 00:38:45

sviet2k commented 4 years ago

I just replaced the timestamp as below but still have same problem:

tstampnow = int(time.mktime(datetime.datetime.strptime(date_time_str, "%a, %d %b %Y %H:%M:%S").timetuple()))

Is it normal the Last Modif date is tomorrow?

mbebe commented 4 years ago

I have the same date: Tested on cricket right now Guyana vs St Lucia: 2020-08-23 22:29:22.633 T:4112 NOTICE: @#@last-modifiedlast-modified: Mon, 24 Aug 2020 18:29:22 GMT 2020-08-23 22:29:22.634 T:4112 NOTICE: @#@date_time_objdate_time_obj: 2020-08-24 20:29:22 2020-08-23 22:29:22.634 T:4112 NOTICE: @#@tstampnowtstampnowtstampnow: 1598293762000 Stream is working.

Check this one: https://anonfiles.com/XfCfG5O7o5/mydecode_py

sviet2k commented 4 years ago

Unfortunately, it does not work for me for the same stream. Something wrong somewhere in my kodi env. :(

Here is the log: https://paste bin.com/Whkt75ht

mbebe commented 4 years ago

plugin.video.PLsportowo-2.0.zip please install this one and give me logs again. it requires script.module.pytz. Let's see what we have in tst4tst4tst4tst4:

sviet2k commented 4 years ago

Here is the log: https://paste bin.com/VPYyKpCu

2020-08-23 17:16:16.575 T:20411 NOTICE: @#@last-modifiedlast-modified: Mon, 24 Aug 2020 21:16:16 GMT 2020-08-23 17:16:16.642 T:20411 NOTICE: @#@tst4tst4tst4tst4: 1598303776000 2020-08-23 17:16:16.642 T:20411 NOTICE: @#@date_time_objdate_time_obj: 2020-08-24 23:16:16 2020-08-23 17:16:16.643 T:20411 NOTICE: @#@tstampnowtstampnowtstampnow: 1598325376000 2020-08-23 17:16:16.644 T:20411 NOTICE: @#@tstampnowtstampnowtstampnow222: 1598325376000 2020-08-23 17:16:16.644 T:20411 NOTICE: @#@tstampnowtstampnowtstampnow33: 1598318176000

I am really appreciate your help 👍

mbebe commented 4 years ago

So please change line 1592 in mydecode.py: nturl = 'https://telerium.tv/streams/%s/%s.json'%(str(cid[0]),str(tstampnow)) to: nturl = 'https://telerium.tv/streams/%s/%s.json'%(str(cid[0]),str(tst4)) and check again. :-D

sviet2k commented 4 years ago

WOW WOW WOW WOW It's working. 👍

I guess the problem is the timezone. We are not in the same timezone. :) You are really really good. I cannot imagine how you can 'reverse engineering" the tel erium code.

mbebe commented 4 years ago

Yes timezone was a problem. :-D I think right now will be ok with pytz :-D

sviet2k commented 4 years ago

Thanks a lot to take time to find the solution for tel erium in weekend day :)