LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-27-2018, 12:40 PM   #5041
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled

Quote:
Originally Posted by mkomko View Post
That's right, I did see that. Thanks.
 
Old 03-27-2018, 01:11 PM   #5042
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by pajamian View Post
I believe the code for the Angels is "ANA". Dodgers might be "LOS"?
A little OT but I absolutely love that the Angels' code is "ANA." The poor OC folks can't even get MLBAM to call them an LA team.
 
Old 03-27-2018, 01:17 PM   #5043
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
I just found a problem. I ran
Code:
mlbplay -d 2018-03-26 la
to check things with last night's Dodgers game but it gave me the Angels' version of the game. I know SNLA carried the game because I watched it last night.
 
Old 03-28-2018, 07:08 AM   #5044
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by BostonPeng View Post
I just found a problem. I ran
Code:
mlbplay -d 2018-03-26 la
to check things with last night's Dodgers game but it gave me the Angels' version of the game. I know SNLA carried the game because I watched it last night.
There seems to be a problem with the look-up algorithm in mlbplay: where there is home and away coverage of a game (which generally there hasn't been in pre-season) then mlbplay always seems to pick the home coverage irrespective of the team code passed in. Possibly this is because the home and away coverages use the same 'g' game number and the look-up algorithm assumes that they are different.
 
1 members found this post helpful.
Old 03-28-2018, 11:05 AM   #5045
hyshai
LQ Newbie
 
Registered: Oct 2015
Posts: 13

Rep: Reputation: Disabled
I haven't really played with mlbstreamer yet - but will it also allow us to get the old non-hls stream that was used for the rtmp urls in mlbviewer?
 
Old 03-29-2018, 01:35 PM   #5046
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Hey everybody. My MLB.tv account is active once again and I should be able to work through the backlog of bugs. The lack of home / away stream selection is a known problem that I wasn't able to address before I lost my MLB.tv access. The -b argument was barely tested so I'm not surprised it's not working yet. Anything else? The best way to file bugs is to create an issue in the github project -- I try to check in here occasionally but I get notifications right away if there are new bugs on github.
 
1 members found this post helpful.
Old 03-29-2018, 02:23 PM   #5047
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Just pushed a couple of fixes and improvements -- thanks to those who posted patches and bug reports here. I haven't fixed team (home/away) selection yet but hope to do that soon -- I'm on vacation now and heading out in a little bit so it might not happen until later tonight.
 
Old 03-29-2018, 02:25 PM   #5048
comat0se
LQ Newbie
 
Registered: May 2016
Posts: 11

Rep: Reputation: 1
did a git pull and mlbstreamer is giving me this: KeyError: 'linescore'

Last edited by comat0se; 03-29-2018 at 02:31 PM.
 
Old 03-29-2018, 02:44 PM   #5049
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Quote:
Originally Posted by comat0se View Post
did a git pull and mlbstreamer is giving me this: KeyError: 'linescore'
Can you paste the full stack trace? There was a bug where games without a line score were causing an exception but I thought I fixed it.
 
Old 03-29-2018, 02:52 PM   #5050
comat0se
LQ Newbie
 
Registered: May 2016
Posts: 11

Rep: Reputation: 1
Traceback (most recent call last):
File "/usr/local/bin/mlbstreamer", line 11, in <module>
load_entry_point('mlbstreamer==0.0.1', 'console_scripts', 'mlbstreamer')()
File "/usr/local/lib/python2.7/dist-packages/mlbstreamer/__main__.py", line 382, in main
view = ScheduleView()
File "/usr/local/lib/python2.7/dist-packages/mlbstreamer/__main__.py", line 299, in __init__
self.table = GamesDataTable(self.toolbar.sport_id, self.game_date) # preseason
File "/usr/local/lib/python2.7/dist-packages/mlbstreamer/__main__.py", line 177, in __init__
super(GamesDataTable, self).__init__(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/panwid/datatable/datatable.py", line 310, in __init__
self.reset()
File "/usr/local/lib/python2.7/dist-packages/panwid/datatable/datatable.py", line 1019, in reset
self.requery()
File "/usr/local/lib/python2.7/dist-packages/panwid/datatable/datatable.py", line 792, in requery
rows = list(self.query(**kwargs))
File "/usr/local/lib/python2.7/dist-packages/mlbstreamer/__main__.py", line 208, in query
if len(g["linescore"]["innings"]):
KeyError: 'linescore'
 
Old 03-29-2018, 02:56 PM   #5051
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
That is not the most current version of the code, so I suspect you didn't run:

pip install -U ".[gui]"
 
Old 03-29-2018, 03:05 PM   #5052
comat0se
LQ Newbie
 
Registered: May 2016
Posts: 11

Rep: Reputation: 1
Yea I didn't do that... wasn't sure that was necessary. I ran pip install -U ".[gui]" but it complained:

Collecting urwid_utils==0.0.5a (from mlbstreamer==0.0.2)
Could not find a version that satisfies the requirement urwid_utils==0.0.5a (from mlbstreamer==0.0.2) (from versions: 0.0.1, 0.0.3, 0.0.4, 0.1.0.dev2, 0.1.0.dev3, 0.1.0.dev5, 0.1.1.dev0)
No matching distribution found for urwid_utils==0.0.5a (from mlbstreamer==0.0.2)

So I ran:
sudo -H pip install -U "git+https://github.com/tonycpsu/mlbstrea...gg=mlbstreamer[gui]" --process-dependency-links

and now it works! Looks good, thanks!
 
Old 03-29-2018, 03:18 PM   #5053
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Yeah, I pushed updates to the urwid-utils and panwid dependencies that should fix that problem. Glad you got it working.
 
Old 03-30-2018, 11:35 AM   #5054
jgshier
LQ Newbie
 
Registered: Mar 2018
Posts: 3

Rep: Reputation: Disabled
So had this working yesterday no issue. Now I am getting, did something change?

2018-03-30 12:25:39 [ DEBUG] logging in
2018-03-30 12:25:40 [ DEBUG] logging in
2018-03-30 12:25:40 [ DEBUG] logged in: 86761497
2018-03-30 12:25:40 [ DEBUG] getting schedule: 1, 2018-03-30 00:00:00, 2018-03-30 00:00:00, None, 134, None
2018-03-30 12:25:40 [ DEBUG] geting media for game 529417
2018-03-30 12:25:40 [ DEBUG] getting schedule: None, None, None, None, None, 529417
Traceback (most recent call last):
File "/usr/local/bin/mlbplay", line 9, in <module>
load_entry_point('mlbstreamer==0.0.2', 'console_scripts', 'mlbplay')()
File "/usr/local/lib/python3.4/dist-packages/mlbstreamer/play.py", line 170, in main
live_from_beginning = options.beginning)
File "/usr/local/lib/python3.4/dist-packages/mlbstreamer/play.py", line 33, in play_stream
media = next(state.session.get_media(game_id))
File "/usr/local/lib/python3.4/dist-packages/mlbstreamer/session.py", line 324, in get_media
for epg in game["content"]["media"]["epg"]:
KeyError: 'media'

Last edited by jgshier; 03-30-2018 at 11:42 AM.
 
Old 03-30-2018, 01:25 PM   #5055
jgshier
LQ Newbie
 
Registered: Mar 2018
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by jgshier View Post
So had this working yesterday no issue. Now I am getting, did something change?

2018-03-30 12:25:39 [ DEBUG] logging in
2018-03-30 12:25:40 [ DEBUG] logging in
2018-03-30 12:25:40 [ DEBUG] logged in: 86761497
2018-03-30 12:25:40 [ DEBUG] getting schedule: 1, 2018-03-30 00:00:00, 2018-03-30 00:00:00, None, 134, None
2018-03-30 12:25:40 [ DEBUG] geting media for game 529417
2018-03-30 12:25:40 [ DEBUG] getting schedule: None, None, None, None, None, 529417
Traceback (most recent call last):
File "/usr/local/bin/mlbplay", line 9, in <module>
load_entry_point('mlbstreamer==0.0.2', 'console_scripts', 'mlbplay')()
File "/usr/local/lib/python3.4/dist-packages/mlbstreamer/play.py", line 170, in main
live_from_beginning = options.beginning)
File "/usr/local/lib/python3.4/dist-packages/mlbstreamer/play.py", line 33, in play_stream
media = next(state.session.get_media(game_id))
File "/usr/local/lib/python3.4/dist-packages/mlbstreamer/session.py", line 324, in get_media
for epg in game["content"]["media"]["epg"]:
KeyError: 'media'
if you print out the game, it looks like the "media" and "epg" are not longer in that return?

2018-03-30 14:23:44 [ DEBUG] getting schedule: None, None, None, None, None, 529417
{'seriesGameNumber': 1, 'rescheduleDate': '2018-03-30T17:10:00Z', 'doubleHeader': 'N', 'calendarEventID': '14-529417-2018-03-29', 'link': '/api/v1/game/529417/feed/live', 'seriesDescription': 'Regular Season', 'tiebreaker': 'N', 'teams': {'home': {'seriesNumber': 1, 'splitSquad': False, 'team': {'shortName': 'Detroit', 'sport': {'name': 'Major League Baseball', 'link': '/api/v1/sports/1', 'id': 1}, 'locationName': 'Detroit', 'fileCode': 'det', 'abbreviation': 'DET', 'league': {'name': 'American League', 'link': '/api/v1/league/103', 'id': 103}, 'link': '/api/v1/teams/116', 'teamName': 'Tigers', 'firstYearOfPlay': '1901', 'division': {'name': 'American League Central', 'link': '/api/v1/divisions/202', 'id': 202}, 'season': 2018, 'active': True, 'name': 'Detroit Tigers', 'teamCode': 'det', 'id': 116, 'venue': {'name': 'Comerica Park', 'link': '/api/v1/venues/2394', 'id': 2394}}, 'leagueRecord': {'losses': 0, 'pct': '.000', 'wins': 0}}, 'away': {'seriesNumber': 1, 'splitSquad': False, 'team': {'shortName': 'Pittsburgh', 'sport': {'name': 'Major League Baseball', 'link': '/api/v1/sports/1', 'id': 1}, 'locationName': 'Pittsburgh', 'fileCode': 'pit', 'abbreviation': 'PIT', 'league': {'name': 'National League', 'link': '/api/v1/league/104', 'id': 104}, 'link': '/api/v1/teams/134', 'teamName': 'Pirates', 'firstYearOfPlay': '1882', 'division': {'name': 'National League Central', 'link': '/api/v1/divisions/205', 'id': 205}, 'season': 2018, 'active': True, 'name': 'Pittsburgh Pirates', 'teamCode': 'pit', 'id': 134, 'venue': {'name': 'PNC Park', 'link': '/api/v1/venues/31', 'id': 31}}, 'leagueRecord': {'losses': 0, 'pct': '.000', 'wins': 0}}}, 'season': '2018', 'status': {'statusCode': 'DI', 'codedGameState': 'D', 'abstractGameCode': 'F', 'abstractGameState': 'Final', 'detailedState': 'Postponed', 'reason': 'Inclement Weather'}, 'gamedayType': 'P', 'ifNecessaryDescription': 'Normal Game', 'description': 'Tigers home opener', 'gameType': 'R', 'ifNecessary': 'N', 'gameDate': '2018-03-29T17:10:00Z', 'content': {'link': '/api/v1/game/529417/content'}, 'gameNumber': 1, 'gamePk': 529417, 'dayNight': 'day', 'recordSource': 'H', 'seasonDisplay': '2018', 'gamesInSeries': 3, 'venue': {'name': 'Comerica Park', 'link': '/api/v1/venues/2394', 'id': 2394}, 'scheduledInnings': 9}
 
  


Reply

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



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 12:18 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
Open Source Consulting | Domain Registration