• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7
UFC Fight Pass?
#46
So after messing around a bit I changed how it was named to include the program so instead of "bisping vs henderson 2" it's now 'UFC 204 Bisping vs Henderson 2" and I got it using event posters instead of the 16:9 thumbnails cut out from the poster so the events replay page looks like this now http://imgur.com/a/MjBgx which is a look I personally prefer.

On the to do list (for me at least) is to get all the items from a category displayed or a next/previous page menu item because as you can see here https://www.ufc.tv/category/ufc-replays?format=json there are 14 pages of results but it only displays one, it will take a fair bit of tweaking around but I should be able to do it sometime this weekend
Reply
#47
(2017-03-17, 01:52)mayofreak Wrote: So after messing around a bit I changed how it was named to include the program so instead of "bisping vs henderson 2" it's now 'UFC 204 Bisping vs Henderson 2" and I got it using event posters instead of the 16:9 thumbnails cut out from the poster so the events replay page looks like this now http://imgur.com/a/MjBgx which is a look I personally prefer.

On the to do list (for me at least) is to get all the items from a category displayed or a next/previous page menu item because as you can see here https://www.ufc.tv/category/ufc-replays?format=json there are 14 pages of results but it only displays one, it will take a fair bit of tweaking around but I should be able to do it sometime this weekend

Excellent! Yeah, program code can be included where applicable, and I'm not against using different images, so long as the method used consistently gets an image for every program in any category and isn't specific to certain categories.

As for the paging... oops! I think the Bouts and Replays categories are the only ones where you get into needing paging, that I can see now.
I'd imagine paging support would be easy to add, since the json includes the paging detail.
Paging isn't incredibly user friendly in Kodi either. IE: for Bouts, there'd be 138 pages to nav through Big Grin. Even allowing X num per page at say 100 would yield 42 pages. Yikes. I do think it's important to add something for it though.

I'll have an update tonight or tomorrow with the fix for 'Live Events' and an additional 'Just Added' menu.
Reply
#48
(2017-03-17, 03:06)portse Wrote: I'd imagine paging support would be easy to add, since the json includes the paging detail.
Paging isn't incredibly user friendly in Kodi either. IE: for Bouts, there'd be 138 pages to nav through Big Grin.

yeah, when i tried with parsing with the old code i ended up with 300+ on the bouts page so it shouldn't be too hard to get them, just to make it manageable without combining videos and folders on the same menu lists

Also the images are working for every video, it's just a little annoying sometimes because i was just using a replace if available which works for posters and bouts but for some random videos, they have a 'poster' image which is just a stretched version of the screenshot haha
Reply
#49
For those interested in auto updates of this addon, I'd encourage you to install my addon repository and then re-install this addon from there.

Cheers
Reply
#50
I've been messing around with adding the ability to search. What I've got so far is here: https://github.com/tabell/plugin.video.u...ree/search

For some reason some search results play and others don't. Debug log shows a 404 error.
Reply
#51
Good stuff @portse I guess we needed the spark of @mayofreak for this addon to come back to life and motivate portse again Smile
Reply
#52
(2017-03-17, 23:41)blocky Wrote: I've been messing around with adding the ability to search. What I've got so far is here: https://github.com/tabell/plugin.video.u...ree/search

For some reason some search results play and others don't. Debug log shows a 404 error.

Cool! Search would be a great feature. I'll have a look this weekend sometime.
Reply
#53
(2017-03-18, 01:39)portse Wrote:
(2017-03-17, 23:41)blocky Wrote: I've been messing around with adding the ability to search. What I've got so far is here: https://github.com/tabell/plugin.video.u...ree/search

For some reason some search results play and others don't. Debug log shows a 404 error.

Cool! Search would be a great feature. I'll have a look this weekend sometime.


An example of something that doesn't play would be: search for chuck and the 4th result is called Ultimate Iceman
Reply
#54
(2017-03-18, 03:56)blocky Wrote: An example of something that doesn't play would be: search for chuck and the 4th result is called Ultimate Iceman

Yeah that video is really weird it's not actually part of any category that i can find from browsing the site, and the url is weird
'http://nlds179.cdnak.neulion.com/nlds_vod/ufc/vod/2013/12/26/ufc-ultimate-liddell.mp4/ufc-ultimate-liddell_1_iphone.mp4.m3u8?=tokenblahblahblah'

havent seen other urls not have "final" in them and i'm yet to see a url with an mp4 extension in the earlier part of the url


also been trying to get all the videos from multiple pages loaded which turned out to be a bit fruitless, I tried extracting the program section from and appending it to the program list like this http://pastebin.com/zn21092H but then the list dictionaries were no longer accessible, i'm sure i will be able to find some sort of work around this weekend though haha
Reply
#55
Folks, 1.0.0 should now be available in my addon repository.
This release fixes the Live Events menu, and also implements the Just Added menu. See changelog for details.

Cheers.
Reply
#56
(2017-03-18, 07:27)mayofreak Wrote:
(2017-03-18, 03:56)blocky Wrote: An example of something that doesn't play would be: search for chuck and the 4th result is called Ultimate Iceman

Yeah that video is really weird it's not actually part of any category that i can find from browsing the site, and the url is weird
'http://nlds179.cdnak.neulion.com/nlds_vod/ufc/vod/2013/12/26/ufc-ultimate-liddell.mp4/ufc-ultimate-liddell_1_iphone.mp4.m3u8?=tokenblahblahblah'

havent seen other urls not have "final" in them and i'm yet to see a url with an mp4 extension in the earlier part of the url

I think we've just been getting lucky with adding 'ced' in the stream url returned by the publish point API, assuming that the server is always going to have that resource to serve up. My guess would be that if we didn't manipulate the stream url (IE: allow it to just use what it gets from the pub point API), it'd work just fine. Perhaps we need to handle that and ensure that if the first try fails, we fall back to the one actually returned from the API. This kind of ties into the work I'd like to do to add the option to choose between SD and HD streams for those that perhaps have tighter bandwidth restrictions and aren't bothered by slightly lesser quality streams.
Reply
#57
(2017-03-18, 07:27)mayofreak Wrote: also been trying to get all the videos from multiple pages loaded which turned out to be a bit fruitless, I tried extracting the program section from and appending it to the program list like this http://pastebin.com/zn21092H but then the list dictionaries were no longer accessible, i'm sure i will be able to find some sort of work around this weekend though haha

Get_data should not have the responsibility of handling the paging logic. The object passed into build_menu perhaps should contain the paging detail to be able to create next/back options which will just trigger a traversal forward or backwards based on which page we're on and how many pages there are. The benefit of that as well is that the absence of paging detail in the object means that it's either a menu that doesn't require paging, or it's the top level menu Smile
Reply
#58
(2017-03-18, 09:14)portse Wrote:
(2017-03-18, 07:27)mayofreak Wrote: also been trying to get all the videos from multiple pages loaded which turned out to be a bit fruitless, I tried extracting the program section from and appending it to the program list like this http://pastebin.com/zn21092H but then the list dictionaries were no longer accessible, i'm sure i will be able to find some sort of work around this weekend though haha

Get_data should not have the responsibility of handling the paging logic. The object passed into build_menu perhaps should contain the paging detail to be able to create next/back options which will just trigger a traversal forward or backwards based on which page we're on and how many pages there are. The benefit of that as well is that the absence of paging detail in the object means that it's either a menu that doesn't require paging, or it's the top level menu Smile

Yeah I pretty much guessed that i was just being lazy and didn't want to rewrite build menu to include sub cats and videos on the same page, but now that im thinking about it would probably be easier just to most of the heavy lifting in get parsed vids haha
Reply
#59
made a small work around to get the next/previous page of videos http://pastebin.com/jhSyaKCy , it's pretty hacky atm and only works when the vid menu list isn't cached which is why I'm not submitting a pullrequest or even commiting it to my build, I'm sure I can think of a fix when I'm not 4-5 beers deep like I am now

peace Smile
Reply
#60
(2017-03-21, 18:00)mayofreak Wrote: made a small work around to get the next/previous page of videos http://pastebin.com/jhSyaKCy, it's pretty hacky atm and only works when the vid menu list isn't cached which is why I'm not submitting a pullrequest or even commiting it to my build, I'm sure I can think of a fix when I'm not 4-5 beers deep like I am now

peace Smile

Says that paste is no longer available. I've written some of my best code when I was many beers deep Big Grin

Update: live event status (ability to identify which live events are actually "live now") and "my queue" features coming soon.
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7

Logout Mark Read Team Forum Stats Members Help
UFC Fight Pass?1