nomego / Lazyman.bundle

Lazyman Plex Channel
105 stars 24 forks source link

New Issues with NHL and MLB #46

Closed pythonhockey closed 6 years ago

pythonhockey commented 6 years ago

The plug-in was working great for me in the web player for NHL games before the latest LazyMan update. Now, only today's date (2/27) is showing up for NHL games and all MLB dates and games are showing, but when you try to open a stream for a game, I get an error, "The plugin is not responding" with the below code in the logs. Is it possible the latest LazyMan change caused this issue? Thanks!

2018-02-27 19:06:47,695 (7efec1ffb700) : CRITICAL (runtime:889) - Exception (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request result = f(**d) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Lazyman.bundle/Contents/Code/__init__.py", line 314, in Feeds oc.add(getStreamVCO(date, game, f)) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Lazyman.bundle/Contents/Code/__init__.py", line 299, in getStreamVCO items = getStreamItems() File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Lazyman.bundle/Contents/Code/__init__.py", line 273, in getStreamItems objects.insert(0, media_object) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 265, in content return self.__str__() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 243, in __str__ self.load() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 181, in load f = self._opener.open(req, timeout=self._timeout) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 438, in open response = self._open(req, data) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 456, in _open '_open', req) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain result = func(*args) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1225, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1192, in do_open raise URLError(err) URLError: <urlopen error [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)>

nomego commented 6 years ago

I'll have a look as soon as I can!

pythonhockey commented 6 years ago

@nomego it seems that NHL works properly, but MLB is still creating the above error.

nomego commented 6 years ago

Got this from Lazyman author

until they move everything over, games b4 2018 use mlb-ws-mf.media.mlb.com 2018 uses playback.svcs.mlb.com

Don't have time to look at this now but maybe someone else does and can post a PR ?

dsbanfield commented 6 years ago

a small number of changes were necessary to Lazyman.jar implementation to get MLB working (4 files). Last commit was 5 days ago as of today (3/3/18). The .jar implementation is working for me with MLB, but the Plex bundle might need similar mods. I'm probably not the one you want importing equivalent mods to the python implementation for Plex.