Sorry for the delayed response, folks. Here's where I'm at with this.
After speaking with daftcat and showing him what I've got so far, we've decided to move forward with a new project, which I'm calling mlbstreamer. I will welcome any and all contributions from daftcat and anyone else who's interested in helping out, but I wanted to take my initial idea for the project from "works for me" status to the point where I thought it was robust enough to release.
Unfortunately, I lost my MLB.tv access today -- not because of anything to do with this app, but because I've had my subscription through T-Mobile's free MLB.tv promotion, and that promotion ended yesterday. Apparently T-Mobile is going to do that promo again, but not until the end of the month, which means I won't have MLB.tv access during Spring Training.
This means it's going to be hard for me to support folks if they run into any problems.
Still, I want people to be able to watch games, so I'm going to release what I have so far. Right now I'd say the intended audience is people can install Python packages and troubleshoot a bit if things go sideways. If that isn't you, well, you're more than welcome to try it out, but I'll be limited in how much I can help without an active MLB.tv account.
What I can say is that this was working for me as of yesterday to watch games, and that I plan to keep improving things over time once I have a working subscription again.
The project is located here:
It consists of two programs:
mlbplay and
mlbstreamer.
mlbplay is a bit like the program of the same name in mlbviewer -- it's a command-line program to play a single game.
mlbstreamer is more like mlbviewer itself, in that it's a console user interface that allows you to browse the schedule and play games from there.
The
mlbstreamer program is definitely a work in progress, so right now it's an optional install. Well, it will be installed by default, but its dependencies won't, so it won't run.
If you want to install without those dependencies just to use the mlbplay command-line program, run:
Code:
pip install "git+https://github.com/tonycpsu/mlbstreamer" --process-dependency-links
If you want the whole thing, including the mlbstreamer console UI dependencies, run:
Code:
pip install "git+https://github.com/tonycpsu/mlbstreamer/#egg=mlbstreamer[gui]" --process-dependency-links
The first thing you'll need to do is configure your username, password, etc. To do that, run:
Code:
mlbplay --init-config
The program should ask you for your username and password, then try to find your media player (it just looks for mpv or vlc right now.). If it doesn't find it, you can enter the full path to whatever you're using. If your player worked with mlbviewer, it should work with mlbstreamer. It'll also ask you for your time zone so that game times are displayed properly.
Once that's done, you should be able to play a team's games by running:
where TEAM is the team code for the team's game you want to watch. If you want to watch a game for a different date, run with the -d option, e.g:
Code:
mlbplay -d 2018-02-24 phi
The
mlbstreamer console UI may or may not work for everyone right now. If it does, it'll show you a schedule view. Press "w" to watch a game, left/right arrows to browse days, "t" to go to today's games. The log window at the bottom should tell you if there are any errors, like if the game doesn't have a stream.
Like I said, I can't really test a lot of the error conditions now because I don't have an active account. But hopefully this thing works for y'all, and if not, well, I can start fixing it once I get my account back.
I should also make it clear clear that this program is intended for streaming MLB.tv for legitimate subscribers only, for the purposes of watching games you're legally allowed to access, and that I will not be held responsible for any problems you may run into as a result of using this software.
I think that's it for now. Hopefully this works for at least one other person!