[RELEASE] NFL Network Highlights (Video) Plugin

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Thumbs Up  [RELEASE] NFL Network Highlights (Video) Plugin
Post: #1
Here is a plug I started a few weeks back and forgot to release. Hopefully the NFL site won't change too much next year and this will still work.

Watch here for updates...
http://xbmc-mdpauley.googlecode.com/file...v2.0.0.rar

Changes for v 2.0.0
Major overhaul

Changes for v 0.7.6
Regex change to fix missing videos
You may need to clear video thumbnail cache

Changes for v .0.7.5

Added SQLite library from AMT script so video info could be cached locally.

When you load the plugin it will create nfl.db in the plugin directory if needed
The table will be created at the same time if needed
When scraping the data to display it checks for the videoCMSID from the website
if the videoCMSID is not found we continue to scrap all of the data, insert it into the database and then display it.
if the videoCMSID is found we select the info and display it.

Please let me know if you have any problems.

MDPauley
(This post was last modified: 2009-11-27 18:42 by MDPauley.)
find quote
Rookie Offline
Senior Member
Posts: 185
Joined: Jul 2008
Reputation: 0
Post: #2
Thanks for this.
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #3
http://code.google.com/p/xbmc-mdpauley/s...Highlights

Added:

Teams
Highlights
NFL Films
Events
Search
(This post was last modified: 2009-07-06 22:43 by MDPauley.)
find quote
isiddiqi Offline
Senior Member
Posts: 142
Joined: Apr 2007
Reputation: 0
Post: #4
It seems that the Teams option gives a Python error, It used to be workinhg fine. Also I do not see. Below is the XBMC (Xbox) log. Not sure why its trying to load settings.xml, that path does not exist... Would appreciate your help...

18:20:37 M: 38449152 NOTICE: -->Python Initialized<--
18:20:37 M: 38449152 NOTICE:
18:21:30 M: 41877504 WARNING: CUtil::GetMatchingSource... no matching source found for [Video plugins]
18:21:39 M: 40521728 ERROR: Unable to load: special://home/plugins/video/NFL Network Highlights/resources/settings.xml, Line 0
Failed to open file
18:21:39 M: 38133760 NOTICE: -->Python Initialized<--
18:21:39 M: 38133760 NOTICE:
18:21:41 M: 34635776 NOTICE: CATEGORY INDEX :
18:21:41 M: 34635776 NOTICE:
18:21:41 M: 35160064 NOTICE:
18:21:41 M: 35160064 NOTICE:
18:21:43 M: 40427520 ERROR: Unable to load: special://home/plugins/video/NFL Network Highlights/resources/settings.xml, Line 0
Failed to open file
18:21:44 M: 38043648 NOTICE: -->Python Initialized<--
18:21:44 M: 38043648 NOTICE:
18:21:46 M: 34435072 NOTICE: Traceback (most recent call last):
18:21:46 M: 34435072 NOTICE: File "Q:\plugins\video\NFL Network Highlights\default.py", line 188, in ?
18:21:46 M: 34426880 NOTICE:
18:21:46 M: 34426880 NOTICE: mkTeamDir()
18:21:46 M: 34435072 NOTICE: File "Q:\plugins\video\NFL Network Highlights\default.py", line 54, in mkTeamDir
18:21:46 M: 34426880 NOTICE:
18:21:46 M: 34426880 NOTICE: code=code[1].split('</select>')
18:21:46 M: 34435072 NOTICE: IndexError
18:21:46 M: 34435072 NOTICE: :
18:21:46 M: 34435072 NOTICE: list index out of range
18:21:46 M: 34435072 NOTICE:
18:21:46 M: 34435072 ERROR: Scriptresult: Error
18:21:48 M: 34947072 NOTICE:
18:21:48 M: 34947072 NOTICE:
18:21:48 M: 39903232 ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting plugin://video/NFL Network Highlights/?url=http%3A%2F%2Fwww.nfl.com%2Fajax%2Fvideos%3FcategoryId%3Dfeatured&mode=3&name=Teams
18:21:48 M: 39903232 ERROR: CGUIMediaWindow::GetDirectory(plugin://video/NFL Network Highlights/?url=http%3A%2F%2Fwww.nfl.com%2Fajax%2Fvideos%3FcategoryId%3Dfeatured&mode=3&name=Teams) failed
18:21:56 M: 40013824 NOTICE: 200 FTP SITE command called [command=help, args=]
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #5
I got it working last night... It's kinda a dirty job, but it will work until I can speed it up.

you can download the updated .py from http://code.google.com/p/xbmc-mdpauley/s...Highlights
find quote
isiddiqi Offline
Senior Member
Posts: 142
Joined: Apr 2007
Reputation: 0
Post: #6
Greatly Appreciated Smile Have been loving your script ever since I heard of it...

While you are at it can you please also check if all the videos are getting displayed from the page, I think the actual site has more videos than what the script is showing, might be a side effect of the quick fix. Also, is there a way to show the latest videos on top? Its very hard to distinguish what videos are newer as the ordering does not seem to match that of the site's...

Thanks
(This post was last modified: 2009-06-05 08:55 by isiddiqi.)
find quote
isiddiqi Offline
Senior Member
Posts: 142
Joined: Apr 2007
Reputation: 0
Post: #7
Hi MPauley73,

Any update on this front for a complete fix? Currently the list of team news show old news only and only a couple of those. Also, if there could be a way to sort the news by latest, would be greatly appreciated?

Thanks,
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #8
I'll have some time the next few days to fix everything up.
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #9
Morning all,

After reviewing the website changes, I'll have a new version with more content out today.

MDPauley
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #10
Ok, I changed my mind on this and decided to use a local db that stores all of the info... check the first post for the new version and the changes made...


original post:
NFL has changed the json used to get the video info and url. This is greatly slowing down the display process on my side... I now have to scrape the json and then the html from the video page.

Would anyone object to me scraping the info, storing it on a different server and serving it from there?
(This post was last modified: 2009-07-06 22:42 by MDPauley.)
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #11
new version posted, see link in first post...
find quote
Aenima99x Offline
Donor
Posts: 1,129
Joined: Aug 2007
Reputation: 8
Location: California
Post: #12
Love this plugin, thanks a lot for keeping it up to date.
find quote
isiddiqi Offline
Senior Member
Posts: 142
Joined: Apr 2007
Reputation: 0
Post: #13
MPauley73 Wrote:new version posted, see link in first post...

Thankyou sir... Smile
find quote
isiddiqi Offline
Senior Member
Posts: 142
Joined: Apr 2007
Reputation: 0
Post: #14
MPauley73,

I am not sure if you have compared the listing from the plugin to the actual size, but I notice that not all the videos show up on the plugin, is it possible to QA that, please? Also, if not too much to ask, is it possible to have the same order of the videos as the site? Right now it becomes hard to distinguish the new videos from the old ones as they interleave.

This is one of the best plugins I use everyday, next to Justin.TV. Would appreciate if you could help here?

Any other NFL plugins you have planned? I would be very interested? I notice there is free live stream for ESPN and NFL Network on sticktv.net, that would be cool, in case you would have bandwidth to do that...

Thanks.
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #15
isiddiqi Wrote:MPauley73,

I am not sure if you have compared the listing from the plugin to the actual size, but I notice that not all the videos show up on the plugin, is it possible to QA that, please? Also, if not too much to ask, is it possible to have the same order of the videos as the site? Right now it becomes hard to distinguish the new videos from the old ones as they interleave.

This is one of the best plugins I use everyday, next to Justin.TV. Would appreciate if you could help here?

Any other NFL plugins you have planned? I would be very interested? I notice there is free live stream for ESPN and NFL Network on sticktv.net, that would be cool, in case you would have bandwidth to do that...

Thanks.

isiddiqi,

Always good to hear that someone uses and enjoys ones work. There was a slight regex issue that only returned every other video. I have fixed it locally and will update this weekend. Once this is fixed, the videos will be listed in the correct order. This still only returns 50 videos for each option.

I'll take a look @ sticktv, but can't promise anything.

-Pauley
find quote
Post Reply