taligentx / LiveTVH.bundle

Live TV streaming with Plex and Tvheadend
GNU General Public License v3.0
105 stars 19 forks source link

Exception trace when checking recordings #27

Closed gtrak closed 6 years ago

gtrak commented 6 years ago
2018-07-24 11:41:35,844 (7fc293fff700) :  DEBUG (runtime:814) - Found route matching /video/livetvh/recordings
2018-07-24 11:41:35,848 (7fc293fff700) :  DEBUG (networking:161) - Fetching 'http://rockstor:9981/api/dvr/entry/grid_finished' from the HTTP cache
2018-07-24 11:41:35,855 (7fc293fff700) :  DEBUG (networking:161) - Fetching 'http://rockstor:9981/api/channel/grid?start=0&limit=100000' from the HTTP cache
2018-07-24 11:41:35,863 (7fc293fff700) :  DEBUG (networking:161) - Fetching 'https://api.thetvdb.com/search/series?name=The%20Late%20Show%20With%20Stephen%20Colbert' from the HTTP cache
2018-07-24 11:41:35,873 (7fc293fff700) :  DEBUG (networking:161) - Fetching 'https://api.thetvdb.com/series/289574' from the HTTP cache
2018-07-24 11:41:35,876 (7fc293fff700) :  CRITICAL (runtime:889) - Exception (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/LiveTVH.bundle/Contents/Code/__init__.py", line 961, in recordings
    artist=artist))
TypeError: channel() takes at least 17 arguments (16 given)

2018-07-24 11:41:35,879 (7fc293fff700) :  DEBUG (runtime:88) - Sending packed state data (592 bytes)
2018-07-24 11:41:35,880 (7fc293fff700) :  DEBUG (runtime:924) - Response: [500] 620 bytes
2018-07-24 11:41:35,883 (7fc293fff700) :  CRITICAL (runtime:1128) - Exception in thread named '_handle_request' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1126, in _start_thread
    f(*args, **kwargs)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/interfaces/socketinterface.py", line 126, in _handle_request
    self.finish()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/web.py", line 565, in finish
    self.request.finish()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py", line 432, in finish
    self.connection.finish()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py", line 262, in finish
    self._finish_request()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py", line 283, in _finish_request
    self.stream.close()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-200287a06/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/iostream.py", line 124, in close
    self.socket.close()
AttributeError: 'NoneType' object has no attribute 'close'
gtrak commented 6 years ago

I'm using the most recent build

taligentx commented 6 years ago

Which version are you using? 1.3 from the master branch has this issue and is resolved in the develop branch 1.4.

gtrak commented 6 years ago

I used 1.3, I can make a build myself but it seemed recent enough.

taligentx commented 6 years ago

I've released v1.4, see if this resolves the issue:

https://github.com/taligentx/LiveTVH.bundle/releases/tag/v1.4

gtrak commented 6 years ago

Confirmed it's working for me on the V1.4 tag

taligentx commented 6 years ago

Good to hear!