Code Monkey home page Code Monkey logo

mlbplayista's Introduction

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:

mlbplayista's People

Contributors

hyshai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.