LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-30-2013, 02:40 PM   #4096
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76

Quote:
Originally Posted by BostonPeng View Post
I see that as of Monday it looks like MLB is changing their online video system. Instead of the highlights showing up in the usual 640x360 size they have a new larger option of 960x540. I can't see if there are quality differences but I was able to get the info in the attached image from VLC on a pair of downloaded videos. (Videos were downloaded with my web browser, not mlbviewer, and strictly for my own viewing.)

@daftcat:
I'm wondering if this has any impact on what you're doing with mlbviewer.
I still see the FLASH_1200K_640X360 highlights as they have always been. It is possible that the website is taking the highlight list from a different location. It is a known issue that MLB.com and mlbviewer have a different list of highlights for a game. I haven't spent much time trying to track down where MLB.com gets its highlight list but maybe I'll look into that soon.
 
Old 05-30-2013, 04:04 PM   #4097
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Ok. I've noticed that most of the highlights for a particular game (from the Postgame Alert emails) shows the larger videos, but for some reason the manager's postgame presser doesn't show up on the newer pages. I keep having to get into the older video search page to be able to even see those videos. Case in point: If I follow the Highlights link from yesterday's Dodgers/Angels game I see there's a video of Mattingly on Dodgers' loss, but that page doesn't show the video at all. I end up having to go to the Browse dropdown menu and select Edward Jones Face Time on MLB and find the video there. I'm guessing they're rolling out a better video system but still have some bugs to work out.
 
Old 05-31-2013, 04:21 AM   #4098
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by BostonPeng View Post
Ok. I've noticed that most of the highlights for a particular game (from the Postgame Alert emails) shows the larger videos, but for some reason the manager's postgame presser doesn't show up on the newer pages. I keep having to get into the older video search page to be able to even see those videos. Case in point: If I follow the Highlights link from yesterday's Dodgers/Angels game I see there's a video of Mattingly on Dodgers' loss, but that page doesn't show the video at all. I end up having to go to the Browse dropdown menu and select Edward Jones Face Time on MLB and find the video there. I'm guessing they're rolling out a better video system but still have some bugs to work out.
Let's look at it from my perspective. Taking the last video page as an example, http://mlb.mlb.com/video/play.jsp?topic_id=27334974, even assuming I could parse that page and find the direct video link (something I really don't want to do because js/html/css is unstructured compared to XML and JSON), I would need to know where those topic_id's come from and how to associate a topic_id with a game. I'm guessing there are several content networks and content providers of which MLB.TV (and the gdx.mlb.com servers with the XML files I parse) are only one of them. You already get a lot of content with mlbviewer but I'm definitely not trying to replicate their website or all their content in mlbviewer.
 
Old 05-31-2013, 09:43 AM   #4099
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
Let's look at it from my perspective. Taking the last video page as an example, http://mlb.mlb.com/video/play.jsp?topic_id=27334974, even assuming I could parse that page and find the direct video link (something I really don't want to do because js/html/css is unstructured compared to XML and JSON), I would need to know where those topic_id's come from and how to associate a topic_id with a game. I'm guessing there are several content networks and content providers of which MLB.TV (and the gdx.mlb.com servers with the XML files I parse) are only one of them. You already get a lot of content with mlbviewer but I'm definitely not trying to replicate their website or all their content in mlbviewer.
I'm sorry, I wasn't asking you to even consider replicating what they have on their site. My question was simply a matter of if the evident midseason change I'm seeing is impacting you. I love the content you're making available to me, and when I see such a big change, especially one that doesn't seem to work quite all the way, I tend to wonder what it does to third-party devs. I've seen more than enough changes that screw with other devs and I was hoping it wasn't the case for you. Tux knows you put in way more than enough time working on mlbviewer, especially this season with the extra goodies you've brought us. I didn't mean to sound like I was asking you to do more for us.
 
Old 06-06-2013, 03:54 AM   #4100
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
SVN revision 507: Pro-active fixes for All-Star break bugs

Just checked in a few fixes for empty schedules (e.g. the All-Star break next month) to prevent IndexError crashes (trying to play media, switch to master scoreboard, box score, line score, etc) when schedule is empty.
 
Old 06-06-2013, 09:28 PM   #4101
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
Let's look at it from my perspective. Taking the last video page as an example, http://mlb.mlb.com/video/play.jsp?topic_id=27334974, even assuming I could parse that page and find the direct video link (something I really don't want to do because js/html/css is unstructured compared to XML and JSON), I would need to know where those topic_id's come from and how to associate a topic_id with a game. I'm guessing there are several content networks and content providers of which MLB.TV (and the gdx.mlb.com servers with the XML files I parse) are only one of them. You already get a lot of content with mlbviewer but I'm definitely not trying to replicate their website or all their content in mlbviewer.
Super easy to get the direct video URLs... ie:

Code:
http://mlb.mlb.com/video/play.jsp?topic_id=27334974
is at

Code:
http://mediadownloads.mlb.com/mlbam/2013/06/06/mlbtv_27794965_1800K.mp4
(300, 600, and 1200K also available, just change URL).

XML containing video links for each video on MLB site are in the following format:

Code:
http://mlb.mlb.com/gen/multimedia/detail/9/6/5/27794965.xml
/9/6/5/ in the URL path is from the last 3 digits of the video ID.

------

Also, daftcat, how can I donate to you for your work on mlbviewer? It's HUGELY appreciated.

Last edited by charlie460; 06-06-2013 at 11:23 PM.
 
Old 06-07-2013, 01:19 AM   #4102
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by charlie460 View Post
Super easy to get the direct video URLs... ie:

Code:
http://mlb.mlb.com/video/play.jsp?topic_id=27334974
is at

Code:
http://mediadownloads.mlb.com/mlbam/2013/06/06/mlbtv_27794965_1800K.mp4
(300, 600, and 1200K also available, just change URL).

XML containing video links for each video on MLB site are in the following format:

Code:
http://mlb.mlb.com/gen/multimedia/detail/9/6/5/27794965.xml
/9/6/5/ in the URL path is from the last 3 digits of the video ID.

------

Also, daftcat, how can I donate to you for your work on mlbviewer? It's HUGELY appreciated.
Okay, but where do I find a list of the topic ID's available?

You can make a donation via Paypal to the email address at the end of the README (tail README).
 
Old 06-07-2013, 01:29 AM   #4103
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
Okay, but where do I find a list of the topic ID's available?
Code:
http://wapc.mlb.com/ws/search/MediaSearchService?start=1&hitsPerPage=60&type=json&sort=desc&sort_type=date&mlbtax_key=mm_wrapup
For example, will get you a list of daily recap "wrapup" videos and their respective content IDs.

Code:
http://wapc.mlb.com/ws/search/MediaSearchService?start=1&hitsPerPage=200&type=json&sort=desc&sort_type=date&mlbtax_key=vtp_must_c
Will get you the "Must C" channel.

Code:
http://wapc.mlb.com/ws/search/MediaSearchService?start=1&hitsPerPage=200&type=json&sort=desc&sort_type=date&mlbtax_key=fastcast%2Bvtp_fastcast
Will get you the FastCast full day replays.

Note: Looks like you may need to send a referer of http://wapc.mlb.com/play/search/ or it seems to block requests.

Edit 2: For some reason changing the hitsPerPage variable actually seems to result in that error.


Sent you a donation to the address, didn't think to look in the README, thanks again!

Last edited by charlie460; 06-07-2013 at 01:36 AM.
 
Old 06-07-2013, 01:55 AM   #4104
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by charlie460 View Post
Code:
http://wapc.mlb.com/ws/search/MediaSearchService?start=1&hitsPerPage=60&type=json&sort=desc&sort_type=date&mlbtax_key=mm_wrapup
For example, will get you a list of daily recap "wrapup" videos and their respective content IDs.

Code:
http://wapc.mlb.com/ws/search/MediaSearchService?start=1&hitsPerPage=200&type=json&sort=desc&sort_type=date&mlbtax_key=vtp_must_c
Will get you the "Must C" channel.

Code:
http://wapc.mlb.com/ws/search/MediaSearchService?start=1&hitsPerPage=200&type=json&sort=desc&sort_type=date&mlbtax_key=fastcast%2Bvtp_fastcast
Will get you the FastCast full day replays.

Note: Looks like you may need to send a referer of http://wapc.mlb.com/play/search/ or it seems to block requests.

Edit 2: For some reason changing the hitsPerPage variable actually seems to result in that error.


Sent you a donation to the address, didn't think to look in the README, thanks again!
FACT: At least 50% of the core mlbviewer network code (features that don't rely on the easy files at gdx.mlb.com) comes from user submissions like this. Knowing where to find JSON or XML data is more than half the battle. Parsing it and putting it into mlbviewer is easy once I know where or how to request the structured data (XML / JSON.)

Give me a week (maybe more, maybe less, depending on work hours and insomnia ) and I'll figure out how to incorporate all of this.

Thanks so much for the donation! Rent has been rising faster than salary out here in CA so anything and everything helps!
 
Old 06-07-2013, 02:19 AM   #4105
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled
Code:
http://mlb.mlb.com/gen/nym/components/multimedia/topvideos.xml
where nym = teamcode may be useful too for finding videos for a specific team
 
Old 06-07-2013, 06:43 PM   #4106
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
I wrote some test code last night to at least parse the last seven days worth of Fast Cast, only to realize that each day of Fast Cast has several videos.

Since it kind of breaks the paradigm of mlbviewer (listings -> individual game -> game content), I will probably spin these features off into their own app with its own paradigm (category -> day -> media content.) And I'll probably roll the RSS in mlbviewer into this new app. It won't be completely separate because I intend to use as much of the mlbviewer interface as I can recycle (inherit the base classes when developing new ones), but I'm not going to try to overload mlbviewer with several new screens and navigation controls.

So pretty much, I expect this to take longer than a week like I first estimated.

In the meantime, if you know/discover/snoop any more of the mlbtax_key like Pitching Performances, let me know. That whole section of MLB.com looks fairly uniformly structured with that media service request URL so it's probably just a matter of knowing the right mlbtax_keys.

Last edited by daftcat; 06-07-2013 at 06:44 PM.
 
Old 06-07-2013, 06:49 PM   #4107
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
In the meantime, if you know/discover/snoop any more of the mlbtax_key like Pitching Performances, let me know. That whole section of MLB.com looks fairly uniformly structured with that media service request URL so it's probably just a matter of knowing the right mlbtax_keys.
Code:
http://mlb.mlb.com/ws/search/MediaSearchService?mmtax_key=2013&mlbtax_key=vtp_head_and_shoulders&op=and&sort=desc&sort_type=date&hitsPerPage=200&src=vpp
Yes, really, vtp_head_and_shoulders... lol.
 
Old 06-09-2013, 06:04 PM   #4108
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by charlie460 View Post
Code:
http://mlb.mlb.com/ws/search/MediaSearchService?mmtax_key=2013&mlbtax_key=vtp_head_and_shoulders&op=and&sort=desc&sort_type=date&hitsPerPage=200&src=vpp
Yes, really, vtp_head_and_shoulders... lol.
How are you finding these? Are you using wireshark or firefox web console or...? Some that were working a few days ago are now getting 403.
 
Old 06-09-2013, 07:49 PM   #4109
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
How are you finding these? Are you using wireshark or firefox web console or...? Some that were working a few days ago are now getting 403.
Firefox console. Try sending a referer of mlb.mlb.com to avoid 403s.
 
Old 06-12-2013, 03:57 PM   #4110
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by charlie460 View Post
Firefox console. Try sending a referer of mlb.mlb.com to avoid 403s.
Thanks. I was getting a little bored having a very stable and mature mlbviewer/milbviewer.

There seems to be no end to the number of mlbtax_key='s (and mmtax_key='s.) And just when I finally thought I had something working and was just plugging new categories into mlbConstants.py, I realize there is a method to the start= and hitsPerPage= bits. I'll probably have something checked in tonight with the solution becoming more complete (e.g. fetching additional records) in the coming weeks.

By the way, any ideas what I should call this beast? I was going to go with mlbdaily but there is so much more than just the daily recaps, highlights, and manager chats.

Also, I would love to find the old Baseball's Best games. I seem to only be able to find Baseball's Best Moments. If I want to watch or listen to one of the old classic games, I can only do that through the mobile app now.
 
  


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 11:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 08:11 AM.

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