MLB TV Add-on Crashing

  • In the MLBTV addon I cannot open (addon crashes) Todays Games or Yesterdays Games. Featured Videos works.

    I tried loading older versions of the Addon and it does the same thing.

    I've also reloaded libreelec (clean install/relogin) to both version 12.0.2 and 12.2 and it does the same thing.

    Checked on the Kodi mlb page and others aren't seeing this problem, so I was wondering if it is a Libreelec issue.


    This is the error I get in the log when opening Todays Games.


    2025-09-12 14:15:12.762 T:451109 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <class 'simplejson.errors.JSONDecodeError'>
    Error Contents: Expecting value: line 1 column 1 (char 0)
    Traceback (most recent call last):
    File "/storage/.kodi/addons/plugin.video.mlbtv/main.py", line 88, in <module>
    todays_games(None, start_inning, sport, teams)
    File "/storage/.kodi/addons/plugin.video.mlbtv/resources/lib/mlb.py", line 83, in todays_games
    nonentitlement_data = get_nonentitlement_data(game_day)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/storage/.kodi/addons/plugin.video.mlbtv/resources/lib/mlb.py", line 1513, in get_nonentitlement_data
    login_token = account.login_token()
    ^^^^^^^^^^^^^^^^^^^^^
    File "/storage/.kodi/addons/plugin.video.mlbtv/resources/lib/account.py", line 90, in login_token
    self.login()
    File "/storage/.kodi/addons/plugin.video.mlbtv/resources/lib/account.py", line 63, in login
    if 'error_description' in r.json():
    ^^^^^^^^
    File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/site-packages/simplejson/__init__.py", line 514, in loads
    File "/usr/lib/python3.11/site-packages/simplejson/decoder.py", line 386, in decode
    File "/usr/lib/python3.11/site-packages/simplejson/decoder.py", line 416, in raw_decode
    simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    -->End of Python script error report<--

  • It looks like something changed on the MLBTV side and the add-on needs changes to accomodate. It's best to report the issue (or check for info) on the add-on support thread in the Kodi forum.

  • Perhaps the add-on needs adjusting to the Python version that LE uses then? although LE12.0 is not 'current' or 'recent' now so I rather doubt that's the issue. Regardless, it's not our add-on or our code. Please report the issue to the add-on author(s).