LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2008, 06:19 PM   #316
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Wow! This is kind of stupid that third week into the season, there still having service outages. I'd have thought they'd have the kinks worked out by now especially with the number of people asking for their money back in the official forums.

jkr

My merged code that I recently told you about catches this sort of thing and says there was a problem with whatever page it had an exception in urllib2.Request(). The debug option dumps the page to the log file. Looks like the outages they had earlier today helped improve the code so the outages they're having now are handled gracefully. ;-)
 
Old 04-14-2008, 06:27 PM   #317
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Yeah, this is making testing really difficult. Almost like they planned it this way...

I got your files and I'll diff your merges against mine (just because there are a few things I had to do for audio sake, and we might have taken a slightly different route on the debugging config option.) Oh, I also added the ability for the config file to read booleans, so the debugging and show_ options you added will work.

Pretty soon now, guys...
 
Old 04-14-2008, 06:31 PM   #318
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by jkr View Post
Yeah, this is making testing really difficult. Almost like they planned it this way...

I got your files and I'll diff your merges against mine (just because there are a few things I had to do for audio sake, and we might have taken a slightly different route on the debugging config option.) Oh, I also added the ability for the config file to read booleans, so the debugging and show_ options you added will work.

Pretty soon now, guys...
Actually, I wouldn't mind if these outages lasts a little longer. I'd like to optimize the network code to handle the meta refresh statements. I'll see what I can do. If they actually get their act together, I'll set up my own test page to give me meta refreshes to test against.
 
Old 04-14-2008, 06:39 PM   #319
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Glass half full type of guy...
 
Old 04-14-2008, 06:47 PM   #320
Hoth
LQ Newbie
 
Registered: Jan 2007
Location: Northern California
Distribution: Kubuntu 8.10
Posts: 26

Rep: Reputation: 15
Seems to be just mlb.com's login page which is having all the trouble. Once I exercise extreme patience waiting to login, gameday audio comes up quick and runs smoothly (through the greesemonkey method). Oh well, I'll take Jerry Howarth for today.

Last edited by Hoth; 04-14-2008 at 06:49 PM.
 
Old 04-14-2008, 06:48 PM   #321
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Peachy!

I just added code to catch their "We are undergoing maintenance operations" error page and now they have it fixed, and I'm not getting that page anymore.

Add the lines between the comments to MLBviewer/mlbtv.py:

Code:
        pattern = re.compile(r'Welcome to your personal mlb.com account.')
        if not re.search(pattern,auth_page):
           self.error_str = "Login was unsuccessful."
           # begin patch for maintenance operations
           maint_pat = re.compile(r'We are currently performing maintenance operations')
           if re.search(maint_pat,auth_page):
               self.error_str += "\n\nSite is performing maintenance operations"
           # end patch for maintenance operations
           self.log.write(auth_page)
           raise Exception, self.error_str
You know. I took a sick day to stay home and rest and I've been working on code all day. I got a hold of a live game and I'm going to watch it.

I can add in meta-refresh handling in the next release. Let's get this one out the door tonight. :-)
 
Old 04-14-2008, 06:56 PM   #322
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Just got audio following working. It will play the audio stream of the home team by default. If two teams that are playing are both being followed it will go with the away team, by convention and because the code is cleaner. Sound good?
 
Old 04-14-2008, 07:01 PM   #323
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by jkr View Post
Just got audio following working. It will play the audio stream of the home team by default. If two teams that are playing are both being followed it will go with the away team, by convention and because the code is cleaner. Sound good?
You tell me. You're the only one with audio support. :-)

Do you need me to look over the code or is it ready to release? Did you change the workflow url to use the right catCode for Gameday Audio?

I'm itching to release because I want folks to test it to heck!

I have four live games open right now and I'm just waiting for the next two to start.

This is so cool. I'm watching live games again. Most of the weekend I was doing my testing against archived games or watching recorded games so I already knew the outcome.
 
Old 04-14-2008, 07:07 PM   #324
Cogs
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
After we've hit that page, we log out and save only the cookies that don't have discard to disk while clearing the jar of the rest. I was able to open five live games at once yesterday (I ran out of live games or I would have gone for more) so it seems like I've got the problem licked.
Why do you need to log out? I haven't fooled with this year's mlb.com, but in past years you could get you account frozen for a short time if you logged in and out too many times. If you saved and re-used the cookies, you could run a script many times in the same mlb.com session. I also used to open multiple streams at once by logging in once, getting the stream urls, and then playing them with mplayer. Are you saying this doesn't work anymore?

I'll do some poking around with what you guys got and let you know if I find anything...
 
Old 04-14-2008, 07:17 PM   #325
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Site maintenance patch works. I only did it for one page so go ahead and add the same code to the other two pages we hit.

I realized that one of the games I was waiting to start I'm blacked out from so I probably won't get up to 6 live streams at once tonight (even without the outages.)

Then again, from reading the Mosaic forums, that I'm even able to get four open is better than a lot of them are doing. ;-)
 
Old 04-14-2008, 07:21 PM   #326
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Cogs View Post
Why do you need to log out? I haven't fooled with this year's mlb.com, but in past years you could get you account frozen for a short time if you logged in and out too many times. If you saved and re-used the cookies, you could run a script many times in the same mlb.com session. I also used to open multiple streams at once by logging in once, getting the stream urls, and then playing them with mplayer. Are you saying this doesn't work anymore?

I'll do some poking around with what you guys got and let you know if I find anything...
We tried using persistent sessions and ran into the dreaded "Our records show you are logged in from more than one computer." error and a 1 hour ban. I've been banging against their servers logging and logging out for several days now without issue. I'd like to get this new code released so others who were running into this problem more frequently can test it and see if it resolves the problem for them. It's not fun being banned for an hour.
 
Old 04-14-2008, 07:30 PM   #327
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Quote:
Did you change the workflow url to use the right catCode for Gameday Audio?
yep. GameStream initializes with a streamtype attribute, and it checks that at a couple of points.

Quote:
I'm itching to release because I want folks to test it to heck!
Worked fine with last night's changes. Then I merged in the newer change and they went down again, so I don't know. I assume it does, but I can't tell if there's a stupid missing comma or anything until they get going again. The problems might be regional, I dunno.
 
Old 04-14-2008, 07:33 PM   #328
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Daftcat -- check your email. I got your tilded mlbtv file, but not the mlbviewer...
 
Old 04-14-2008, 07:36 PM   #329
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by jkr View Post
Daftcat -- check your email. I got your tilded mlbtv file, but not the mlbviewer...
Check yours. I had it in the wrong directory. You can now try the old url I sent or the same base + mlbviewer.py.new if the ~ is giving you problems.
 
Old 04-14-2008, 07:50 PM   #330
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
No wonder why they're having so many problems tonight. They're running a free preview night with no blackouts.
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration