Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

HyShai/MLBPlayista

Repository files navigation

MLBPlayista - DEPRECATED


Overview

MLBPlayista is a stripped down version of mlbviewer modified to run on Pythonista for iOS. It has one objective - to allow the watching of live (currently playing) MLB.tv games on an iOS device without using the MLB AtBat app. (You are still required to purchase an MLB.tv Premium or Single Team subscription.) This can be useful for some people; I won't enumerate the reason(s) - they may fall into the gray area of the Terms Of Service.

MLBPlayista is based on the mlbplay.py script that is included in the mlbviewer project.

Installation

  1. Subscribe to MLB.tv Premium or Single Team

  2. Install Live Player (Free with $4.99 IAP to remove ads etc.) - MLBPlayista will not work without Live Player.

  3. Install Pythonista ($9.99)

  4. Install MLBPlayista with a one line python command:

    import requests as r; exec r.get('http://rawgit.com/HyShai/MLBPlayista/master/get_mlbplayista.py').text

    --> Simply copy the above line, paste into Pythonista interactive prompt and execute. It installs MLBPlayista to the ~/Documents/MLBPlayista folder, and optionally installs a homecreen shortcut to MLBPlayista.

  5. Edit the MLBPlayista/config.txt file - see below for config options. You will probably, at the least, want to set the user and pass options - instead of manually entering them each time.

Usage

  1. Launch MLBPlayista either via the homescreen shortcut (if you installed it), or via the MLBPlayista/mlbplayista.py file.
  2. Choose a speed, if you didn't set a default speed in config.txt.
  3. Choose a game.
  4. Choose a team broadcast stream.
  5. Wait for MLBPlayista to fetch the stream.
  6. MLBPlayista will then open the stream in LivePlayer. (click Open, if prompted "Pythonista wants to open Live Player")
  7. Enjoy the game!

Configuration

For MLBPlayista there are only a few config options that are useful (complete config options are explained in full here): [Don't put quotes around any of the values]

  • user - MLB.tv username
  • pass - MLB.tv password
  • speed - 450, 800, 1200, 1800, 2500 default video stream speed (Kbps)
  • favorite - teamcode, pins your favorite team(s) to the top of the list
  • time_offset - can be used to specify local time offset from US/Eastern (UTC-4) if default time conversion fails (e.g. -03:00 to indicate US/Eastern-3 or US/Pacific)
  • international - True/False, prune NAT from listings to allow international users to see the correct INT streams instead
  • postseason - True/False, for international users, this setting ignores US blackout statuses that appear during postseason
  • debug - True/False, display the media URL only; does not launch player; also produces crashes with stack traces for failures instead of handling errors gracefully

Credits:

  • mlbviewer is an awesome project - check it out for an alternate viewing experience to the MLB.tv website. Full credit to Matthew Levine and Jesse Rosenthal for completely reverse engineering the MLB.tv media process. Paypal donations can be sent to them via straycat000(at)yahoo(dot)com. mlbviewer is in no way affiliated with MLBPlayista.
  • Pythonista is a wonderful, indispensable app which runs Python applications on an iOS device.
  • Live Player is the only app on the AppStore which I could find that can play rtmp streams with parameters.
  • Half of the installation script was plagiarized from StaSh tool.
  • The other half uses the html from the Pythonista's built in shortcut generator.
  • The shortcut icon was made by Vicent Pla
Notes:

Releases

No releases published

Packages

No packages published

Languages