Kodi Community Forum

Full Version: MLB.TV®
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2020-07-25, 04:46)chalbersma Wrote: [ -> ]
(2020-07-25, 03:43)chalbersma Wrote: [ -> ]2020-07-24 18:39:40.607 T:2764468432   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 'access_token'
                                            Traceback (most recent call last):
                                              File "/home/pi/.kodi/addons/plugin.video.mlbtv/main.py", line 42, in <module>
                                                stream_select(game_pk)
                                              File "/home/pi/.kodi/addons/plugin.video.mlbtv/resources/lib/mlb.py", line 230, in stream_select
                                                stream_url, headers = account.get_stream(content_id[n-1])
                                              File "/home/pi/.kodi/addons/plugin.video.mlbtv/resources/lib/account.py", line 122, in get_stream
                                                auth, url = self.get_playback_url(content_id)
                                              File "/home/pi/.kodi/addons/plugin.video.mlbtv/resources/lib/account.py", line 97, in get_playback_url
                                                auth = self.access_token()
                                              File "/home/pi/.kodi/addons/plugin.video.mlbtv/resources/lib/account.py", line 88, in access_token
                                                % self.media_entitlement()
                                              File "/home/pi/.kodi/addons/plugin.video.mlbtv/resources/lib/account.py", line 69, in media_entitlement
                                                self.login()
                                              File "/home/pi/.kodi/addons/plugin.video.mlbtv/resources/lib/account.py", line 54, in login
                                                login_token = r.json()['access_token']
                                            KeyError: 'access_token'

possibly a login problem?
Found my issue : https://github.com/eracknaphobia/plugin....tv/pull/30

Workaround for others using email alias, replace the + with %2B.

What you mean?

I use my email adress as login [email protected]

or mean you the account.py ?
I have noticed these last few days the radio broadcasts aren't working. The main audio stream works just fine but the second and third are silent. They work in the browser but not in the plugin.
(2020-07-25, 21:11)WHamilton Wrote: [ -> ]What you mean?

I use my email adress as login [email protected]

or mean you the account.py ?

So most email providers allow you to sign use an email alias. So in your example, instead of signing
up for mlb.tv with [email protected] I would have signed up with [email protected] . When putting that into
the app I get a "failed to login" error (actually I don't but I messed around with a debugger to get
the error message.

If however I put in xxx%[email protected] or xxx%2Bmlb.tv%40yyy.zz the system works. I think MLB.tv has
something internally that translates the @ symbol but I don't think they were expecting the +'s.

You don't necessarily have to take this pull request, but at least now there will be a workaround documented.
(2020-07-27, 05:25)chalbersma Wrote: [ -> ]
(2020-07-25, 21:11)WHamilton Wrote: [ -> ]What you mean?

I use my email adress as login [email protected]

or mean you the account.py ?

So most email providers allow you to sign use an email alias. So in your example, instead of signing
up for mlb.tv with [email protected] I would have signed up with [email protected] . When putting that into
the app I get a "failed to login" error (actually I don't but I messed around with a debugger to get
the error message.

If however I put in xxx%[email protected] or xxx%2Bmlb.tv%40yyy.zz the system works. I think MLB.tv has
something internally that translates the @ symbol but I don't think they were expecting the +'s.

You don't necessarily have to take this pull request, but at least now there will be a workaround documented.
doesn't work here.
(2020-07-27, 21:54)WHamilton Wrote: [ -> ]
(2020-07-27, 05:25)chalbersma Wrote: [ -> ]
(2020-07-25, 21:11)WHamilton Wrote: [ -> ]What you mean?

I use my email adress as login [email protected]

or mean you the account.py ?

So most email providers allow you to sign use an email alias. So in your example, instead of signing
up for mlb.tv with [email protected] I would have signed up with [email protected] . When putting that into
the app I get a "failed to login" error (actually I don't but I messed around with a debugger to get
the error message.

If however I put in xxx%[email protected] or xxx%2Bmlb.tv%40yyy.zz the system works. I think MLB.tv has
something internally that translates the @ symbol but I don't think they were expecting the +'s.

You don't necessarily have to take this pull request, but at least now there will be a workaround documented.
doesn't work here.

Well maybe I should take some more time to test my pull request. But at least initially; the workaround is currently working for me. Might be something to note if someone comes by with an error.
(2020-07-25, 13:37)rls8 Wrote: [ -> ]
(2020-07-25, 01:24)Crap Yeah Wrote: [ -> ]
(2020-07-23, 17:06)Crap Yeah Wrote: [ -> ]Just curious if it is working for anyone else. For me when I click on a game, then "catch up" or "live," nothing happens.

Neither archived games or current ones work for me. I click on the game, it very briefly shows a loading wheel and then nothing happens.

I'm curious whether a kodi skin could be messing with things, I'm currently using Arctic Zephyr 2.
I also have this behavior. Same as WHamilton, the log points to an SSH issue. Not sure how to fix this, any ideas?


2020-07-24 16:40:07.445 T:1547633520  NOTICE: Opening stream: 1 source: 256
2020-07-24 16:40:07.453 T:1606382448  NOTICE: Librespot: pactl 1
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::FillBuffer - Failed: SSL peer certificate or SSH remote key was not OK(60)
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::Open failed with code 0 for https://playback.svcs.mlb.com/silk/event...17505f9410:
2020-07-24 16:40:07.868 T:1170789232   ERROR: AddOnLog: InputStream Adaptive: Cannot download https://playback.svcs.mlb.com/silk/event...17505f9410
2020-07-24 16:40:07.875 T:1547633520 WARNING: OpenStream - Unsupported stream 1. Stream disabled.
I get this error from a Kodi running underneath LibreELEC as well. I've found that disabling the InputStream Adaptive allows me to get past this. You can do that via the following:

Add-ons -> My add-ons -> All -> InputStream Adaptive -> Disable
(2020-07-26, 21:43)zalo Wrote: [ -> ]I have noticed these last few days the radio broadcasts aren't working. The main audio stream works just fine but the second and third are silent. They work in the browser but not in the plugin.

I also often get silence when changing the audio stream. However, If I stop and restart the stream after doing that, I am able to successfully hear the radio feed.
(2020-07-30, 03:35)markdstjohn Wrote: [ -> ]
(2020-07-25, 13:37)rls8 Wrote: [ -> ]
(2020-07-25, 01:24)Crap Yeah Wrote: [ -> ]Neither archived games or current ones work for me. I click on the game, it very briefly shows a loading wheel and then nothing happens.

I'm curious whether a kodi skin could be messing with things, I'm currently using Arctic Zephyr 2.
I also have this behavior. Same as WHamilton, the log points to an SSH issue. Not sure how to fix this, any ideas?


2020-07-24 16:40:07.445 T:1547633520  NOTICE: Opening stream: 1 source: 256
2020-07-24 16:40:07.453 T:1606382448  NOTICE: Librespot: pactl 1
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::FillBuffer - Failed: SSL peer certificate or SSH remote key was not OK(60)
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::Open failed with code 0 for https://playback.svcs.mlb.com/silk/event...17505f9410:
2020-07-24 16:40:07.868 T:1170789232   ERROR: AddOnLog: InputStream Adaptive: Cannot download https://playback.svcs.mlb.com/silk/event...17505f9410
2020-07-24 16:40:07.875 T:1547633520 WARNING: OpenStream - Unsupported stream 1. Stream disabled.
I get this error from a Kodi running underneath LibreELEC as well. I've found that disabling the InputStream Adaptive allows me to get past this. You can do that via the following:

Add-ons -> My add-ons -> All -> InputStream Adaptive -> Disable
Hey! I'm not alone! I noticed this too. If you leave inputstream.adaptive on but disable widevine does it start working (trying to see if it behaves the same as mine).
(2020-07-30, 03:35)markdstjohn Wrote: [ -> ]
(2020-07-25, 13:37)rls8 Wrote: [ -> ]
(2020-07-25, 01:24)Crap Yeah Wrote: [ -> ]Neither archived games or current ones work for me. I click on the game, it very briefly shows a loading wheel and then nothing happens.

I'm curious whether a kodi skin could be messing with things, I'm currently using Arctic Zephyr 2.
I also have this behavior. Same as WHamilton, the log points to an SSH issue. Not sure how to fix this, any ideas?


2020-07-24 16:40:07.445 T:1547633520  NOTICE: Opening stream: 1 source: 256
2020-07-24 16:40:07.453 T:1606382448  NOTICE: Librespot: pactl 1
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::FillBuffer - Failed: SSL peer certificate or SSH remote key was not OK(60)
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::Open failed with code 0 for https://playback.svcs.mlb.com/silk/event...17505f9410:
2020-07-24 16:40:07.868 T:1170789232   ERROR: AddOnLog: InputStream Adaptive: Cannot download https://playback.svcs.mlb.com/silk/event...17505f9410
2020-07-24 16:40:07.875 T:1547633520 WARNING: OpenStream - Unsupported stream 1. Stream disabled.
I get this error from a Kodi running underneath LibreELEC as well. I've found that disabling the InputStream Adaptive allows me to get past this. You can do that via the following:

Add-ons -> My add-ons -> All -> InputStream Adaptive -> Disable

Worked like a charm. Thank you!!
(2020-07-30, 05:10)chalbersma Wrote: [ -> ]
(2020-07-30, 03:35)markdstjohn Wrote: [ -> ]
(2020-07-25, 13:37)rls8 Wrote: [ -> ]I also have this behavior. Same as WHamilton, the log points to an SSH issue. Not sure how to fix this, any ideas?


2020-07-24 16:40:07.445 T:1547633520  NOTICE: Opening stream: 1 source: 256
2020-07-24 16:40:07.453 T:1606382448  NOTICE: Librespot: pactl 1
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::FillBuffer - Failed: SSL peer certificate or SSH remote key was not OK(60)
2020-07-24 16:40:07.865 T:1170789232   ERROR: CCurlFile::Open failed with code 0 for https://playback.svcs.mlb.com/silk/event...17505f9410:
2020-07-24 16:40:07.868 T:1170789232   ERROR: AddOnLog: InputStream Adaptive: Cannot download https://playback.svcs.mlb.com/silk/event...17505f9410
2020-07-24 16:40:07.875 T:1547633520 WARNING: OpenStream - Unsupported stream 1. Stream disabled.
I get this error from a Kodi running underneath LibreELEC as well. I've found that disabling the InputStream Adaptive allows me to get past this. You can do that via the following:

Add-ons -> My add-ons -> All -> InputStream Adaptive -> Disable
Hey! I'm not alone! I noticed this too. If you leave inputstream.adaptive on but disable widevine does it start working (trying to see if it behaves the same as mine).

Not sure what has changed, but I can't recreate this issue at all any longer, regardless of whether InputStream Adaptive or Widevine are enabled or not.
i ve solved my problem. Delete key in settings.xml.
(2020-07-30, 03:37)markdstjohn Wrote: [ -> ]
(2020-07-26, 21:43)zalo Wrote: [ -> ]I have noticed these last few days the radio broadcasts aren't working. The main audio stream works just fine but the second and third are silent. They work in the browser but not in the plugin.

I also often get silence when changing the audio stream. However, If I stop and restart the stream after doing that, I am able to successfully hear the radio feed.

Do you mean pause the stream? When I stop and restart the stream it always goes back to the tv audio.
No matter what I try the secondary and tertiary audio streams are silent. I have tried stopping and starting, pausing, logging out and re-installing.

Here is a log switching through each of the audio streams.

uqijudirur.kodi (paste)
(2020-08-19, 02:07)zalo Wrote: [ -> ]No matter what I try the secondary and tertiary audio streams are silent. I have tried stopping and starting, pausing, logging out and re-installing.

What system are you on? Are you using Inputstream.Adaptive? That’s what I use, and the audio is initially silent when I switch tracks, but kicks in after ~10 seconds.
(2020-08-22, 20:20)tonywagner Wrote: [ -> ]
(2020-08-19, 02:07)zalo Wrote: [ -> ]No matter what I try the secondary and tertiary audio streams are silent. I have tried stopping and starting, pausing, logging out and re-installing.

What system are you on? Are you using Inputstream.Adaptive? That’s what I use, and the audio is initially silent when I switch tracks, but kicks in after ~10 seconds.
Raspberry pi 3B+
OSMC June 2020 2020.06-1
Kodi 18.7
I am using Inputstream.Adaptive

I tested the secondary audio track again tonight and waited 2 minutes. Silence. When I switch back to the main audio track, I can hear it instantly.