Kodi Community Forum

Full Version: Livestream
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
(2015-10-02, 21:04)siuside Wrote: [ -> ]I looked for it but couldn't find it in settings. Only option was the login username/pass.

My bad, I forgot to upload the settings file. It should be there now.
(2015-10-02, 21:10)eracknaphobia Wrote: [ -> ]
(2015-10-02, 21:04)siuside Wrote: [ -> ]I looked for it but couldn't find it in settings. Only option was the login username/pass.

My bad, I forgot to upload the settings file. It should be there now.

Thanks ! Tested and confirmed working Smile
FYI, I've created a repo for speedy updates. I still plan on submitting builds to the official kodi repo as well.

https://github.com/eracknaphobia/repo.er...phobia.zip
Installed your repo. Looking forward to the next Livestream test builds/updates coming in automatically now before they get promoted to official Kodi repo
It looks like the JSON feed can be given some parameters to override the defaults of displaying 10 Items. Current Live event is http://livestream.com/bwfbadminton/sspodense2015court2 (EventID = 3709959).
JSON Feed is

Code:
https://api.new.livestream.com/accounts/6523598/events/3709959/feed/

Data from the current feed, edited for brevity

Code:
{
  "total": 46,
  "data": [
    {
      "type": "video",
      "data": {
        "id": 102169900,
        "event_id": 3709959,
        "caption": "Mathias BOE (DNK) \/ Carsten MOGENSEN (DNK) vs Cheng LIU (CHN) \/ Kai LU (CHN)",
        "duration": 4019088,
        "broadcast_id": 102169901,
        "original_duration": 4019088,
        "copied_from": null,
        "description": null,
        "asset_id": "6cd0236b-5cd3-4dca-b206-4dc00f46ea66",
        "asset": {
          "qualities": [
            {
              "name": "custom",
              "bitrate": 246000,

I can see that feed does have a correct "Total" displayed as the first element but the number of video items in the feed is 10, which seems to be the default and that is what we get in the addon.

However if we take this Total and pass it on to the feed URL with maxItems=46, then we have all 46 videos come in correctly.


Code:
https://api.new.livestream.com/accounts/6523598/events/3709959/feed/?maxItems=46

If we don't want to capture the actual Total from the default json, passing arbitrary numbers like maxItems=50 or 100 etc also works. There are several other parameters that can be passed to the JSON feed. The following are the defaults and changing them to reasonable numbers produces valid results.

Code:
GET https://api.new.livestream.com/accounts/6523598/events/3709959/feed_sync?lastUpdate=1444760683603&updatesPage=1&deletionsPage=1&updatesMaxItems=10&deletionsMaxItems=10
GET https://api.new.livestream.com/accounts/6523598/events/3709959/feed/?maxItems=10&older=10&newer=0&timestamp=1444760683601

Hope this can help replicate the behavior of webpage adding more videos as you scroll down.







(2015-10-02, 20:25)eracknaphobia Wrote: [ -> ]
(2015-10-02, 19:08)siuside Wrote: [ -> ]
(2015-10-02, 18:37)eracknaphobia Wrote: [ -> ]The beta has been updated to address these issues

v2015.10.2
- Added play best stream automatically setting
- Changed code to accommodate for 1 or more streams per event for both live and archive
- Added description to stream info

Just finished testing.

- Sorting of timeline of live stream with multiple upcoming events is fixed.

- Best stream is not playing automatically. Still getting prompted to select the stream. (Both live and archive events tested)

- Still not populating all videos of current live event.

Current live event in BWF Badminton is SCG Thailand Open 2015 (http://livestream.com/bwfbadminton/gpgbangkok2015court2) There are 44 videos total for this event and they can be accessed on this webpage (http://livestream.com/bwfbadminton/gpgba...rt2/videos) The addon is only listing 10 events. I think the possible reason is that the event although a live event has been running since Tuesday and has an ongoing archive each day (http://livestream.com/bwfbadminton/gpgba...2/archives), not sure how they are sending it but "44 updates" or "44 Videos"/"44 Posts" gives the number on the webpage
Image

Similar problem exists with the exact number of videos not getting displayed in the Archived events (e.g 2015 Korea Open 32 Posts/Videos on webpage vs 10 in addon) http://livestream.com/bwfbadminton/ssseoul2015court2


Also like ashfallen0's suggestion indeed. Will be great to have.

- Good deal

- Did you toggle the "play best stream available" setting on? It's off by default.

- Looks like the webpage adds more videos as you scroll down the page. This maybe tricky to implement, but I'll see what I can figure out.
Hi guys, very good addon,
I have only a problem. I can't find any channel or video stored on "original.livestream.com"
How can I do?
Just wanted to say thanks for this making this addon Big Grin
I looked for something last year and ended up when i wanted to watch a live stream i'd look for the m3u8 in the page source then add it into a .strm file to play and have been doing this a couple of times a week since.
Thank god I searched again this is going to save me sooo much effort!!
(2015-10-18, 00:01)danteal Wrote: [ -> ]Hi guys, very good addon,
I have only a problem. I can't find any channel or video stored on "original.livestream.com"
How can I do?

Have you tried logging in within the addon? Everything that you have subscribed to on the website should be coming in.

original.livestream.com seems to be resolving to same livestream.com load balanced IPs so they should be all the same.

Code:
Name:    original.livestream.com
Address: 23.235.37.207
Name:    original.livestream.com
Address: 23.235.33.207

Code:
Name:    livestream.com
Address: 104.156.81.207
Name:    livestream.com
Address: 104.156.85.207
Name:    livestream.com
Address: 23.235.33.207
Name:    livestream.com
Address: 23.235.37.207
(2015-10-17, 17:58)siuside Wrote: [ -> ]It looks like the JSON feed can be given some parameters to override the defaults of displaying 10 Items. Current Live event is http://livestream.com/bwfbadminton/sspodense2015court2 (EventID = 3709959).
JSON Feed is

Code:
https://api.new.livestream.com/accounts/6523598/events/3709959/feed/

Data from the current feed, edited for brevity

Code:
{
  "total": 46,
  "data": [
    {
      "type": "video",
      "data": {
        "id": 102169900,
        "event_id": 3709959,
        "caption": "Mathias BOE (DNK) \/ Carsten MOGENSEN (DNK) vs Cheng LIU (CHN) \/ Kai LU (CHN)",
        "duration": 4019088,
        "broadcast_id": 102169901,
        "original_duration": 4019088,
        "copied_from": null,
        "description": null,
        "asset_id": "6cd0236b-5cd3-4dca-b206-4dc00f46ea66",
        "asset": {
          "qualities": [
            {
              "name": "custom",
              "bitrate": 246000,

I can see that feed does have a correct "Total" displayed as the first element but the number of video items in the feed is 10, which seems to be the default and that is what we get in the addon.

However if we take this Total and pass it on to the feed URL with maxItems=46, then we have all 46 videos come in correctly.


Code:
https://api.new.livestream.com/accounts/6523598/events/3709959/feed/?maxItems=46

If we don't want to capture the actual Total from the default json, passing arbitrary numbers like maxItems=50 or 100 etc also works. There are several other parameters that can be passed to the JSON feed. The following are the defaults and changing them to reasonable numbers produces valid results.

Code:
GET https://api.new.livestream.com/accounts/6523598/events/3709959/feed_sync?lastUpdate=1444760683603&updatesPage=1&deletionsPage=1&updatesMaxItems=10&deletionsMaxItems=10
GET https://api.new.livestream.com/accounts/6523598/events/3709959/feed/?maxItems=10&older=10&newer=0&timestamp=1444760683601

Hope this can help replicate the behavior of webpage adding more videos as you scroll down.

Good find! I'll think I'll set it 100 for now.
Do you think it will hit them hard everytime though if it is hard coded to 100? Most of these providers don't have more than 10 vids in total, let alone across multiple events like BWF Badminton, who seem to be their most advanced client. Maybe it can be a user config item with the default of 10 to match what Livestream has.
@erack

I think we should try to mimic the browser scroll experience and not make out of bounds calls that they may not appreciate if they start detecting it (even though it does seem to return complete results). The updatesPage/deletionsPage along with updatesMaxItems and deletionsMaxItems functions will let us achieve that.

For the above same event that has now finished and now found under archives ( http://livestream.com/bwfbadminton/sspodense2015court2 (EventID = 3709959)) there are 46 videos as shown on the webpage and also the json feed

Image


The following lets us browse a maximum of 10 videos at a time until the "video id"s are exhausted for the event_id. The "lastUpdate" parameter is mandatory and we can pass $epoch_time to get current time

Code:
https://api.new.livestream.com/accounts/6523598/events/3709959/feed_sync?lastUpdate=$epoch_time&updatesPage=1&deletionsPage=1&updatesMaxItems=10&deletionsMaxItems=10

https://api.new.livestream.com/accounts/6523598/events/3709959/feed_sync?lastUpdate=$epoch_time&updatesPage=2&deletionsPage=2&updatesMaxItems=10&deletionsMaxItems=10

https://api.new.livestream.com/accounts/6523598/events/3709959/feed_sync?lastUpdate=$epoch_time&updatesPage=3&deletionsPage=3&updatesMaxItems=10&deletionsMaxItems=10

https://api.new.livestream.com/accounts/6523598/events/3709959/feed_sync?lastUpdate=$epoch_time&updatesPage=4&deletionsPage=4&updatesMaxItems=10&deletionsMaxItems=10

https://api.new.livestream.com/accounts/6523598/events/3709959/feed_sync?lastUpdate=$epoch_time&updatesPage=5&deletionsPage=5&updatesMaxItems=10&deletionsMaxItems=10

Since that covers all 46 events, the updatesPage=6 returns blank results/data and the loop can be terminated

Code:
{"updates":{"total":46,"data":[]},"deletions":[]}

Is that doable?
I decided to use the exact total amount to load the streams for the event since I already had this value available to reference at the point in the code where I build the stream list. I think their servers should be fine with this as json files are very small and lightweight and the video streams are not called until the user selects them from the list.

Test code can be downloaded from here:
https://github.com/eracknaphobia/plugin....annels.zip
Getting an error at the moment with latest version http://pastebin.com/6F5ptZYC
(2015-10-21, 17:33)siuside Wrote: [ -> ]Getting an error at the moment with latest version http://pastebin.com/6F5ptZYC

Same here, I just got it starting a minute ago:

HTTP Error 503: Service Unavailable

Based on the definition of the error I'm going with this is a temporary issue
"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state"

If you search "BWF" you can still get to the streams

EDIT:
Working here again...
(2015-10-21, 17:38)eracknaphobia Wrote: [ -> ]
(2015-10-21, 17:33)siuside Wrote: [ -> ]Getting an error at the moment with latest version http://pastebin.com/6F5ptZYC

Same here, I just got it starting a minute ago:

HTTP Error 503: Service Unavailable

Based on the definition of the error I'm going with this is a temporary issue
"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state"

If you search "BWF" you can still get to the streams

EDIT:
Working here again...



Yes I just confirmed going that route just now. For a moment I thought it was the difference in the addon folder name vs the addon_data folder name.

Confirmed the updates across multiple events in BWF. Looks good ! Smile


Edit: My Channels/login also working now.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14