Menu

#1 NCAA Football Addition

Next_Release
closed
5
2006-10-18
2006-08-23
mag0o
No

Haven't had a chance to test it out yet (no games until
next weekend) but here is a preliminary class for NCAAF.

Discussion

  • mag0o

    mag0o - 2006-08-23

    NCAAF Event Factory

     
  • Derek Battams

    Derek Battams - 2006-09-01
    • labels: --> EventMonitors
    • milestone: --> Next_Release
    • assigned_to: nobody --> dbattams
     
  • Derek Battams

    Derek Battams - 2006-09-01

    Logged In: YES
    user_id=1048851

    A couple of comments:

    First, you'll want to sort the school names in the .dat file
    by string length (longest strings at the top of the file).
    Why? If you don't then when you're monitoring a game
    involving Texas A&M you may unknowingly get the status of
    the Texas Longhorns game, if Texas were listed before Texas
    A&M in the .dat file. Sorting the file by string length
    avoids this issue.

    Second, I saw your crash report on the Myth users' list.
    The report you give indicates a PHP/MySQL client crash.
    I've copied your NCAAF files into my local tree and ran my
    initial tests and the classes seem to work fine. I'll try
    recording a game on the weekend (I don't get as much NCAA
    football on TV north of the 49th, but I do get some). But
    the crash you report is a PHP/MySQL problem. I'm running
    PHP 5.1.5 on my server, if you're not running a recent
    version of PHP I'd suggest upgrading. Crashes of the nature
    you're reporting aren't an MRE issue, but rather a PHP
    issue. It could also be a MySQL client issue - you may want
    to look at upgrading MySQL as well (if the problem persists).

    I'll await a few recording tests using your NCAAF class and
    assuming it goes well I'll definitely commit your additions
    to CVS.

    Out of curiousity, how did you generate the .dat file for
    the entire NCAA?

     
  • Derek Battams

    Derek Battams - 2006-09-01

    Logged In: YES
    user_id=1048851

    Attaching sorted .dat file for NCAA football

     
  • Derek Battams

    Derek Battams - 2006-09-03

    Logged In: YES
    user_id=1048851

    First recording test with the NCAAF class was successful.
    Recorded Notre Dame v. Georgia Tech and the recording was
    extended successfully through the end of the game.

     
  • mag0o

    mag0o - 2006-09-07

    Logged In: YES
    user_id=1067018

    I manually created the .dat for the NCAA based on how ESPN
    names them (yes, long and boring).

    I am mostly aware of my errors being PHP/MySQL related and
    will look into them this weekend (hopefully). What version
    of MySQL are you using and what OS? The system that crashed
    for me is FC4 2.6.15-1, PHP 5.0.4, MySQL Server 4.1 client
    3.23. I'm building a Slackware test system that I will try
    with current versions to see how it goes.

    I was wondering how the different 'local' colleges were
    handled (Texas, Texas St, etc) so the sorting in the .dat
    file makes sense. Thanks for the great tool!

     
  • mag0o

    mag0o - 2006-09-07

    Logged In: YES
    user_id=1067018

    Oh yeah, I added MRE to the Myth wiki

    http://mythtv.org/wiki/index.php/Myth_recording_extender

     
  • Derek Battams

    Derek Battams - 2006-09-09

    Logged In: YES
    user_id=1048851

    I've attached my latest updates to the NCAAF class. I've
    removed the need for an NCAAF.dat file and instead parse the
    subtitle of the game (very strictly) to find the details
    needed. Why? It's just too hard to maintain an accurate
    dat file for the NCAA. One of my daily tests this past week
    reported a failure because a team involved wasn't in the dat
    file and the wrong game was attached as a monitor. Instead,
    the latest NCAAF class deduces the participants in a rather
    strict fashion and the parsing of ESPN's game data is also
    done in a very strict manner so as to reduce false-positive
    game matches to zero, with the side effect being that no
    monitor is attached to a game that the NCAAF class can't
    positively identify. The stricter parsing of the game data
    is also done due to various schools having such similar
    names (Texas, Texas Tech, Texas A&M; North Carolina, North
    Carolina State, etc). This issue does not exist in the
    major pro sports so the softer matching rules being used are
    fine there, but not so much when dealing with the NCAA.

    Use the newly attached NCAAF.php file with the already
    attached version of EventFactory.php. You can delete the
    NCAAFEvent.dat file, as it's no longer used. I won't delete
    the dat file and the old version of NCAAF from this report,
    in case we need to come back to it at some point.

    I've been testing with this version of the NCAAF class for
    the last few days and it's been working as expected. I
    expect this to be the version of NCAAF to be committed to CVS.

     
  • mag0o

    mag0o - 2006-09-20

    Logged In: YES
    user_id=1067018

    OK, I've finally gotten my .20 systems built and am able to
    test now.

    mysql version: 4.1.21-log
    php version: 5.1.5
    slackware 10.2

    I changed mre.php line 65 to allow for mythtv version .20

    I'll test this weekend and let you know how it goes.

     
  • mag0o

    mag0o - 2006-09-22

    Logged In: YES
    user_id=1067018

    Hmmm, I need to find out how long the Virginia @ GA Tech
    game was...

    ===============================
    Thu, 21 Sep 2006 22:22:00 -0400
    Title: College Football
    Subtitle: Virginia at Georgia Tech
    Channel: 1033
    Ending: 2006-09-21 22:30:00
    Monitored: Yes (NCAAFEvent)
    Status: Event isn't over. Ignored until next check.

    Skipping write of recording rule, nothing was changed!
    Sleeping for 5 minutes.
    ===============================
    Thu, 21 Sep 2006 22:27:00 -0400
    Title: College Football
    Subtitle: Virginia at Georgia Tech
    Channel: 1033
    Ending: 2006-09-21 22:30:00
    Monitored: Yes (NCAAFEvent)
    Status: Event isn't over. Recording extended.

    Sleeping for 5 minutes.

    ====SNIP===

    ===============================
    Fri, 22 Sep 2006 01:22:00 -0400
    Title: College Football
    Subtitle: Virginia at Georgia Tech
    Channel: 1033
    Ending: 2006-09-22 01:25:00
    Monitored: Yes (NCAAFEvent)
    Status: Event isn't over. Recording extended.

    Sleeping for 5 minutes.

    Fri, 22 Sep 2006 01:27:00 -0400
    Title: College Football
    Subtitle: Virginia at Georgia Tech
    Channel: 1033
    Ending: 2006-09-22 01:30:00
    Monitored: Yes (NCAAFEvent)
    Status: Event isn't over, but it's already been extended
    beyond the specified limit so doing nothing.

    Skipping write of recording rule, nothing was changed!
    Sleeping for 5 minutes.

    ====================================================

    It extended the program to it's max, recording 6 hours of
    the channel. I didn't watch the game, but I have a feeling
    it wasn't a 6 hour game. I'm glad I set the max extension
    to 3 hours! Since I'm pretty sure the game wasn't 6+ hours,
    how can we go about determining why it extended the recording?

     
  • Derek Battams

    Derek Battams - 2006-09-22

    Logged In: YES
    user_id=1048851

    There is a bug in the NCAAFEvent parser. It seems that MRE
    attached the West Virginia at East Carolina game to this
    game. WVA/EC doesn't start until Sat at 16:30 so MRE
    constantly saw that the game wasn't over and therefore
    repeatedly extended your recording of VA/GAT. I'll take a
    look at this bug today and hopefully have a fix posted in
    this bug report before tomorrow's college games kickoff.

     
  • Derek Battams

    Derek Battams - 2006-09-22

    Logged In: YES
    user_id=1048851

    Latest version of NCAAFEvent class attached. Fixed bug
    where incorrect game was being monitored for a recording by
    fixing the regex being used to parse the game data.

     
  • Derek Battams

    Derek Battams - 2006-09-22

    Logged In: YES
    user_id=1048851

    All NCAAFEvent updates are now committed to CVS for version
    control. With this regex fix, I'm fairly confident that the
    current version of NCAAFEvent attached to this bug (and now
    in CVS) will be the version included in the next release of
    MRE. A few more tests will be needed to confirm.

     
  • Derek Battams

    Derek Battams - 2006-09-22

    Logged In: YES
    user_id=1048851

    While I was looking at this today, I decided to get
    ambitious and add support for all of Division I-A and
    Division I-AA games. The updated monitor that is attached
    (and also in CVS) will now scan ESPN's entire I-A and I-AA
    scoreboard to look for the required game data.

     
  • Derek Battams

    Derek Battams - 2006-09-22

    NCAAFEvent (22 Sep w/ I-A and I-AA support)

     
  • mag0o

    mag0o - 2006-09-23

    Logged In: YES
    user_id=1067018

    Woohoo!

    Sleeping for 5 minutes.

    Fri, 22 Sep 2006 23:21:00 -0400
    Title: College Football
    Subtitle: Northwestern at Nevada
    Channel: 1034
    Ending: 2006-09-22 23:25:00
    Monitored: Yes (NCAAFEvent)
    Status: Event isn't over. Recording extended.

    Sleeping for 5 minutes.

    Fri, 22 Sep 2006 23:26:00 -0400
    Title: College Football
    Subtitle: Northwestern at Nevada
    Channel: 1034
    Ending: 2006-09-22 23:30:00
    Monitored: Yes (NCAAFEvent)
    Status: Event is over. Recording will stop within 60
    seconds.

    Sleeping for 5 minutes.

    Looks like it worked for that game. I'll do a couple more
    this weekend and see how they go.

    If this works out good, I may see about working on a class
    for NASCAR using yahoo sports. I found a page on their site
    that has supposedly live data so I'll see how 'live' it is
    tomorrow with the truck race.

     
  • Derek Battams

    Derek Battams - 2006-09-23

    Logged In: YES
    user_id=1048851

    Did you use the latest version of the NCCAFEvent class
    attached here? I'm looking for some more testing results of
    my latest changes.

     
  • mag0o

    mag0o - 2006-09-25

    Logged In: YES
    user_id=1067018

    Yes, I'm using the latest files here.

    My primary hard drive died this weekend in my master
    backend, so I'm rebuilding from scratch...BAH!! It should
    be up in time for more testing this weekend so I will let
    you know how it goes.

     
  • mag0o

    mag0o - 2006-09-30

    Logged In: YES
    user_id=1067018

    Looks good here. Recorded a couple more games with your
    latest files, 2 ran long and got extended fine.

     
  • Derek Battams

    Derek Battams - 2006-10-18
    • status: open --> closed
     
  • Derek Battams

    Derek Battams - 2006-10-18

    Logged In: YES
    user_id=1048851

    Final version of NCAAFEvent class now committed to CVS. The
    version in CVS now will make up the next release of MRE.
    The final version includes support for I-A and I-AA games.

     

Log in to post a comment.