NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 54 55 56 57 58 … 93 Next »
Sports scores plugin?

 
  • 0 Vote(s) - 0 Average
Sports scores plugin?
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#1
2005-12-22, 05:31 PM
I was thinking about developing a plugin to display sports scores. You could enter your favorite teams in the config, and it would display scores (or the next game date) for in-season sports on a seperate "Sports" page. It would also be great to be able to have the option to show a pop-up OSD to show the score for a few seconds when your (or the oppossing team) scores a point (if possible with the API...).

I'd probably start off with one or two sports, and not worry about the OSD part for now, then build on from there. I only have about a year's worth of .NET experience, so it may take a while to get going on this, but I'll definitely give it a try. I'd love to hear any thoughts or ideas you may have. Thanks in advance.

gruskada
Spartan
Offline

Senior Member

Posts: 457
Threads: 28
Joined: Mar 2005
#2
2005-12-22, 05:42 PM
I recommend using cbs.sportsline.com for your source (good for USA anyways).

Once you have a an account with them, you can use this hyperlink (and parse it in the code behind) http://cbs.sportsline.com/my/box-scoreboards/ This way would not have to deal with the complexity of only showing your favorite teams' scores. Leave that part for the other guys.

I am not aware of any pure XML sources for sports scores.
GBPVR v1.0.16 | Comskip | SportsScores | Weather | I-XmlTV

Server: Tyan Thunder h1000E | 2 x Opteron 2210 | 2GB PC2-5300 DDR2 ECC
LSI MegaRAID 300-8X SATA RAID
1x 73GB SCSI @ 10K RPM (OS)
3x 500GB SATA @ 7.2K RPM (RAID 5) (4 Partitions: Docs, Still Pics, Home Movies, Music)
2x 160GB IDE @ 7.2K RPM (RAID 0) (Recordings)
Hauppauge HVR-1600

Client: Gigabyte GA-MA69GM-S2H | Athlon x2 5000+ BE | 2GB PC-6400 DDR2
1x 320GB SATA @ 7.2K RPM
Antec NSX2480 Case
MCE Remote
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#3
2005-12-22, 05:46 PM
Thanks, Spartan. That's a great idea. I'll have to set up an account there and play around with it.

gruskada
Spartan
Offline

Senior Member

Posts: 457
Threads: 28
Joined: Mar 2005
#4
2005-12-22, 06:12 PM
Alternatively, if you did not want to force users to set up an account, you could use these scores links

MLB: http://www.sportsline.com/mlb/box-scoreboards
NFL: http://www.sportsline.com/nfl/box-scoreboards
NCAA Football: http://www.sportsline.com/collegefootbal...coreboards
NCAA Basketball: http://www.sportsline.com/collegebasketb...coreboards
NHL: http://www.sportsline.com/nhl/box-scoreboards
NBA: http://www.sportsline.com/nba/box-scoreboards
Tennis: http://www.sportsline.com/tennis/box-scoreboards

if you throw a ?qs_single=1 at the end of the URL, you will only get today's scores. Example: http://www.sportsline.com/nba/box-scoreb...s_single=1
GBPVR v1.0.16 | Comskip | SportsScores | Weather | I-XmlTV

Server: Tyan Thunder h1000E | 2 x Opteron 2210 | 2GB PC2-5300 DDR2 ECC
LSI MegaRAID 300-8X SATA RAID
1x 73GB SCSI @ 10K RPM (OS)
3x 500GB SATA @ 7.2K RPM (RAID 5) (4 Partitions: Docs, Still Pics, Home Movies, Music)
2x 160GB IDE @ 7.2K RPM (RAID 0) (Recordings)
Hauppauge HVR-1600

Client: Gigabyte GA-MA69GM-S2H | Athlon x2 5000+ BE | 2GB PC-6400 DDR2
1x 320GB SATA @ 7.2K RPM
Antec NSX2480 Case
MCE Remote
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#5
2005-12-22, 06:28 PM
Thanks again. I've setup (actually found) my account at SportsLine. The output will definitely require a bit of RegEx-ing, if that's the one I go with, but it's doable (the free RegEx tool "Expresso" is great for testing out this type of stuff...).

I'm going to sign up for a ton of sports site's tonight, and see which one offers the best format for parsing (hopefully somebody's got XML - maybe I can get an RSS feed from somewhere...). I'll also look into what (if any) permission is required - I'd hate to do all the work on this just to get a cease and desist order...

gruskada
elite
Offline

Senior Member

Posts: 700
Threads: 26
Joined: Sep 2004
#6
2005-12-22, 07:20 PM
I really like the OSD idea if the API will allow...

Are scores available as an RSS feed? - If so, a generic RSS reader might be more useful - so not only scores can be displayed but also news etc...

I've thought about this for a while, but unfortunatley I know zero about C# etc...
nkh
Offline

Senior Member

Posts: 418
Threads: 14
Joined: Jan 2004
#7
2005-12-22, 07:33 PM
I found this: http://www.exactscores.com/
They have some commercial links in their xml file, but the results look okay: http://www.exactscores.com/SoccerLivescoreXml.xml

Alternatively, this: http://www.livescore.com has live score for quite a few soccer leagues. They haven't got an xml feed, but they do have a wap version which may or may not be easier to convert into something usefull Smile
Nicolai [SIZE="1"]- http://www.nk-h.dk
Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.[/SIZE]
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#8
2005-12-22, 08:51 PM
Ugh - it's not looking good so far:

"Permission to use materials from the Service (the "Materials") is granted provided that: (a) The copyright notice appears in all copies; (b) Use of such Materials is for informational and non-commercial or personal use only and will not be copied or posted on any network computer or broadcast in any media; and © No modifications of the Materials are made."
- from SportsLine.com's terms of service

I've got an email in to their legal department asking for "express written permission". We'll see how that goes...

gruskada
nkh
Offline

Senior Member

Posts: 418
Threads: 14
Joined: Jan 2004
#9
2005-12-22, 09:52 PM
oh, didn't notice that... though... a program that reads a file and displays parts of it on the users screen.. is that illigal? isn't it roughly the same as setting your browser to not show adds online?
Nicolai [SIZE="1"]- http://www.nk-h.dk
Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#10
2005-12-22, 09:56 PM
You wouldnt be the first plugin to be grabbing information from a website without permission...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,018 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,504 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,591 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,981 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,841 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,279 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,005 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,157 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,313 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,489 2012-01-15, 08:33 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode