LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-30-2010, 01:14 PM   #3046
berni42
LQ Newbie
 
Registered: Jul 2010
Posts: 16

Rep: Reputation: 0

Sorted!

Last edited by berni42; 07-30-2010 at 03:04 PM.
 
Old 07-30-2010, 01:42 PM   #3047
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Thanks again, and welcome to our humble mlbviewer thread! So do people in the UK really watch baseball? What teams do people like over there?

Also, did you see the patch above that fixes the test/soapevent.py file? Using this I imagine you should be able to get your mlbviewer running again until daftcat gets the main codebase working with the new format.
 
Old 07-30-2010, 02:40 PM   #3048
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by carpie View Post
Following daftcat's direction and being the patient coder type I hacked together a patch for soapevent.py that lets me get games again. It could use a little love/error checking, but it seems to work for me...

I've attached the patch. It can be applied from the trunk of a svn checkout. For those of you who don't deal with patches, I attached the whole test/soapevent.py file.

Hope this helps someone else get their baseball fix
How do I apply this patch? I've been watching without nexdef.

Thanks in advance.
 
Old 07-30-2010, 03:01 PM   #3049
berni42
LQ Newbie
 
Registered: Jul 2010
Posts: 16

Rep: Reputation: 0
Smile

Quote:
Originally Posted by poorboywilly View Post
Thanks again, and welcome to our humble mlbviewer thread! So do people in the UK really watch baseball? What teams do people like over there?

Also, did you see the patch above that fixes the test/soapevent.py file? Using this I imagine you should be able to get your mlbviewer running again until daftcat gets the main codebase working with the new format.
Yes. Uk used to get a small dose of Mlb on Channel 5 with some excellent presenters. It was canned a couple of years ago. very sad. I think satellite had it but when I looked it was poor quality and a 12 month contract and full of 5-10 minute advert breaks.

I worked in Houston a while...saw my first match in the dome. I tend to follow NYY...but will enjoy any game. My football gene was removed many years ago after watching the shocking violance at a London match - Baseball is soooo much better - at least the punch-ups are on the pitch. :-)

I did patch my soapevent.py file but same error in mlbviewer. I imagine I am using it in the wrong way.

--
Linux user #417419.

Last edited by berni42; 07-30-2010 at 03:16 PM.
 
Old 07-30-2010, 05:32 PM   #3050
carpie
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by rjwood View Post
How do I apply this patch? I've been watching without nexdef.

Thanks in advance.
Easiest way is to replace your test/soapevent.py with the one I attached (minus the .txt extension of course). After that you should be able get the game event id from running mlblistings.py and then run test/soapevent.py <your_desired_id> to pull the game down with rtmpdump. You can then view the result in a player like mplayer.

As far as the nexdef stuff goes, I don't know what to tell you. I watch all my games with mplayer using the method above...
 
Old 07-30-2010, 05:38 PM   #3051
carpie
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by berni42 View Post
I did patch my soapevent.py file but same error in mlbviewer. I imagine I am using it in the wrong way.
As far as I know, the patch only helps if you are using a method like I described above.

One other thing to watch out for, I used ElementTree to parse the XML response and this is only available by default in python 2.5 or greater. So if you're stuck on a distro like RHEL5 (which uses python 2.4), you may need to install ElementTree separately http://pypi.python.org/pypi/elementtree/1.2.6-20050316
 
Old 07-30-2010, 06:00 PM   #3052
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Oh well, I just have to wait for daftcat to update mlbviewer. I'll have to use flash in small screen until then.
 
Old 07-30-2010, 06:03 PM   #3053
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
One more thing to add about using carpie's patch. He patched soapevent.py which by default, writes the audio/video to an mp4 file by the name of <event-id>.mp4 where <event-id> is what is found using the mlblistings.py script.

A few notes:

1) you'll need about 1.2 GB of disk space for a game,
2) because of problems in rtmpdump, you may not actually download the complete game the first time, but if you run the script again, it will resume the download where it left off, and
3) you will obviously need to play the downloaded video stream using a separate window.
4) You can watch the game as it is being downloaded.
5) Please don't post any of these games to file sharing networks. This script was really only meant for debugging the network code or writing quick samples of the stream to test mplayer.
6) Finally, all the nifty features like stream selection and filtering out alternative coverage like Yankees On Yes isn't in this script. So Yankees fans, this might not work for you.

Carpie, I can appreciate the simplicity of ElementTree and perhaps one day, I'll spend the time learning it. I appreciate you got a patch out so quickly. For the official patch into mlbviewer itself, I'm going to use minidom because that's what I've been using throughout. It's kind of a pain, but at least it will be consistent.

Last edited by daftcat; 07-30-2010 at 06:05 PM.
 
Old 07-30-2010, 06:25 PM   #3054
carpie
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
Carpie, I can appreciate the simplicity of ElementTree and perhaps one day, I'll spend the time learning it. I appreciate you got a patch out so quickly. For the official patch into mlbviewer itself, I'm going to use minidom because that's what I've been using throughout. It's kind of a pain, but at least it will be consistent.
Agreed on minidom. minidom follows the DOM spec pretty closely, so like XML itself, it's overly verbose but works fine...

As for nifty features, I'm a basic subscriber, so I don't get that many features anyway. Also, I don't post the games anywhere... I pay for them and watch them myself. (See mlb, not all users are criminals!) It's nice to be able to watch them on my PVR or on the laptop attached to my treadmill. I appreciate your efforts (even just for soapevent.py) If I didn't have the freedom to watch them where and when I wanted, I wouldn't be a subscriber at all... I gave up NFL football due to fan abuse, I could give up MLB as well if I had to... So if mlb does ever try to come down on you, you can tell them they have at least one subscriber just *because* of you
 
Old 07-30-2010, 08:32 PM   #3055
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Woot! Getting close.

I have the content list parsed. This is the first and most difficult of the requests as I have to sift through all those media listings and strip out things like Yankees On Yes and alternative language broadcasts.

Anyway, for the non-technical users, this means I've started the work to get this fixed. And starting the work is always the hardest step.

Btw, is there much demand for being able to listen to the alternate audio? I always figured that since the web gui doesn't suck too bad for listening to games, especially with the mini interface for audio, that alternate audio users could use that until I ever get around to implementing it here.

I also got a heads-up and I sort of see this in the media listings response that there are now alternative audio tracks for video. I guess this means you can choose to watch the TV video with the radio audio. I'm not sure how that works yet (from the view of what requests do I have to make and is this a premium feature only) but one thing at a time. If anyone has used this with the official client, how does it work? Is it a premium feature? Is it worth spending any time on?
 
Old 07-30-2010, 09:28 PM   #3056
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Revision 264: SOAP replaced with new model - mlbviewer working again

So it looks like I've got this sorted out now. Please test and report any problems back to me.

I've only updated the nexdef2010 branch. This branch will become the trunk soon anyway. Even if you don't use nexdef, you can use this branch. If you haven't checked out from this branch before, please do the following:

Code:
$ cd $HOME
$ svn checkout https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010 nexdef2010
$ cd nexdef2010
$ python mlbviewer.py
You no longer need to worry about the MediaService.* files.

Test it out and let me know if there's anything still not working. I haven't done any testing with the latest autobahn.jar as I wasn't made aware of that new file until after the SOAP problems started. Maybe tomorrow morning I'll see what needs to be changed to get nexdef working again.

Happy weekend!
 
1 members found this post helpful.
Old 07-31-2010, 02:48 AM   #3057
mkomko
Member
 
Registered: Mar 2010
Posts: 67

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by daftcat View Post
So it looks like I've got this sorted out now. Please test and report any problems back to me.
Looks good from here. I'm not using any advanced features, just watching archived games. That seems to be working fine. Thank you so much for the quick fix!

And a happy weekend to you and all others as well.
 
Old 07-31-2010, 07:42 AM   #3058
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
No change here.

Quote:
Traceback (most recent call last):
File "mlbviewer.py", line 1545, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1237, in mainloop
u = g.soapurl()
File "/home/rob/mlbviewer/MLBviewer/mlbtv.py", line 1280, in soapurl
reply = client.service.find(**soapd)
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 539, in __call__
return client.invoke(args, kwargs)
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 598, in invoke
result = self.send(msg)
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 633, in send
result = self.failed(binding, e)
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 684, in failed
r, p = binding.get_fault(reply)
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/bindings/binding.py", line 238, in get_fault
raise WebFault(p, faultroot)
suds.WebFault: Server raised fault: 'java.lang.NullPointerException'

Last edited by rjwood; 07-31-2010 at 07:45 AM.
 
Old 07-31-2010, 11:42 AM   #3059
cktb
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0
Smile

Thanks works great again. Its such a fine line between "Works Great" and "I ain't got shit".
 
Old 07-31-2010, 12:20 PM   #3060
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by rjwood View Post
No change here.
You don't have the new code. Go back and re-read my post, especially the quoted section that has directions for getting the nexdef2010 branch.
 
  


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


All times are GMT -5. The time now is 10:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration