Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel not working - Log - TVH4.1 and PMS 1.4.3 Ubuntu 16.04 #16

Open
Jones1024 opened this issue Mar 10, 2017 · 3 comments
Open

Channel not working - Log - TVH4.1 and PMS 1.4.3 Ubuntu 16.04 #16

Jones1024 opened this issue Mar 10, 2017 · 3 comments

Comments

@Jones1024
Copy link

Jones1024 commented Mar 10, 2017

TVH is full working (over IP:9981).

2017-03-10 09:37:20,538 (7fd1027fc700) : DEBUG (networking:166) - Requesting 'http://localhost:9981/api/serverinfo'
2017-03-10 09:37:20,541 (7fd1027fc700) : INFO (init:79) - Successfully connected to Tvheadend server
2017-03-10 09:37:20,542 (7fd1027fc700) : DEBUG (runtime:88) - Sending packed state data (117 bytes)
2017-03-10 09:37:20,543 (7fd1027fc700) : DEBUG (runtime:924) - Response: [200] str, 0 bytes
2017-03-10 09:37:22,846 (7fd1027fc700) : DEBUG (runtime:717) - Handling request GET /video/tvplexend
2017-03-10 09:37:22,848 (7fd1027fc700) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2017-03-10 09:37:22,850 (7fd1027fc700) : DEBUG (runtime:814) - Found route matching /video/tvplexend
2017-03-10 09:37:22,851 (7fd1027fc700) : DEBUG (networking:166) - Requesting 'http://localhost:9981/api/channel/grid?start=0&limit=999999'
2017-03-10 09:37:22,873 (7fd1027fc700) : DEBUG (networking:166) - Requesting 'http://localhost:9981/api/epg/events/grid'
2017-03-10 09:37:22,893 (7fd1027fc700) : WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Invalid control character '\x05' at: line 1 column 54186 (char 54185)
2017-03-10 09:37:23,011 (7fd1027fc700) : DEBUG (base:117) - Checking if at.gaubatz.patrick.tvplexend.channel is broken
2017-03-10 09:37:23,012 (7fd1027fc700) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzYKYXQuZ2F1YmF0ei5wYXRyaWNrLnR2cGxleGVuZC5jaGFubmVsczEwCmlkZW50aWZpZXJyMAo_'
2017-03-10 09:37:23,043 (7fd1027fc700) : CRITICAL (runtime:970) - Exception when constructing response (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 951, in construct_response
el = result._to_xml()
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py", line 667, in _to_xml
el = Framework.modelling.objects.ModelInterfaceObjectContainer._to_xml(self)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 382, in _to_xml
root = Container._to_xml(self)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 139, in _to_xml
self._append_children(root, self._objects)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 145, in _append_children
el = obj._to_xml()
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py", line 559, in _to_xml
el = Framework.modelling.objects.ModelInterfaceObject._to_xml(self)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 370, in _to_xml
set_xml_attrs(self._model._attributes)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 359, in set_xml_attrs
set_xml_attr(root, name, attr)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-03e4cfa35/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 351, in set_xml_attr
el.set(convert_name(name), attr_string)
File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531)
File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781)
File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-03-10 09:37:23,043 (7fd1027fc700) : DEBUG (runtime:1027) - Unable to handle response type: <class 'Framework.modelling.objects.MediaContainer'>
2017-03-10 09:37:23,044 (7fd1027fc700) : DEBUG (runtime:88) - Sending packed state data (117 bytes)

@matt-schrader
Copy link

You might be hitting the same problem I hit tonight. I've forked this repo and fixed it in mine. I don't intend on attempting to contribute it back since this repo is not active.

@Jones1024
Copy link
Author

Hi Matt,

thanks for answer. I installed your repo - and the problem is still there :

2017-04-21 06:48:10,351 (7ff1a2ffd700) : DEBUG (networking:166) - Requesting 'http://localhost:9981/api/epg/events/grid'
2017-04-21 06:48:10,358 (7ff1a2ffd700) : WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Invalid control character '\x05' at: line 1 column 59675 (char 59674)
2017-04-21 06:48:10,385 (7ff1a2ffd700) : CRITICAL (init:226) - An exception occured: JSONDecodeError('control characters must be escaped inside JSON string literals', u'\x05ltv.de \nWeb www.bibeltv.de","nextEventId": 4192107},{"eve
ntId": 4209305,"episodeId": 4209306,"channelName": "Zee.One","channelUuid": "fa3afc4977595b1906725c780bf395d4","channelNumber": "0","channelIcon": "imagecache/460","start": 1492749900,"stop": 1492751700,"title": "Infomercials","subtitle"
: "Werbesendung","summary": "Werbesendung","nextEventId": 4209307},{"eventId": 4192983,"episodeId": 4192984,"channelName": "PHOENIX HD","channelUuid": "75ff817154be9768bd54ee7087c17d22","channelNumber": "58","channelIcon": "imagecache/35
6","start": 1492749900,"stop": 1492752600,"title": "Geheimnisvolle Orte","subtitle": "Troja und der Schatz des Priamos","summary": "Troja und der Schatz des Priamos","description": "Am 31. Mai 1873 st\xc3\xb6\xc3\x9ft der Kaufmann und Pr
ivatgelehrte Heinrich Schliemann bei seinen Grabungen in einem H\xc3\xbcgel an der K\xc3\xbcste Kleinasiens an einer alten Befestigungsmauer auf eine Steinkiste. Darin enthalten: goldene Gef\xc3\xa4\xc3\x9fe, fein gearbeitete Schmuckst\x
c3\xbccke und prachtvolle Diademe. F\xc3\xbcr den deutschen Hobbyarch\xc3\xa4ologen ist klar: Dies muss er sein - der \"Schatz des Priamos\"!Produziert in HD","genre": [112],"nextEventId": 4192985},{"eventId": 4187719,"episodeId": 4187
720,"channelName": "ARD-alpha","channelUuid": "4661f8fc1733295c196edf12f7aa2b14","channelNumber": "62","channelIcon": "imagecache/360","start": 1492749900,"stop": 1492750800,"title": "Mythen - Michael K\xc3\xb6hlmeier erz\xc3\xa4hlt Sage
n des klassischen Altertums","description": "Perseus VPS:06:45:00 Sendedauer: 15 StereoProduziert in HD","genre": [112],"nextEventId": 4187721},{"eventId": 4224773,"episodeId": 4224774,"channelName": "WDR HD K\xc3\xb6ln","channelUuid": "
ac0fed00f026c534e9e22b0364d8a0e2","channelNumber": "0","channelIcon": "imagecache/348","start": 1492750200,"stop": 1492751700,"title": "Lokalzeit aus Duisburg","subtitle": "Der Blick in die Region","summary": "Der Blick in die Region","d
escription": "Hier erfahren Sie, was in Ihrer Region passiert.Produziert in HD","genre": [32],"nextEventId": 4224775},{"eventId": 4221737,"episodeId": 4221738,"channelName": "WDR HD K\xc3\xb6ln","channelUuid": "79b82704e8254ea8bb78ec26cf
dd7a2f","channelNumber": "0","channelIcon": "imagecache/348","start": 1492750200,"stop": 1492751700,"title": "Lokalzeit aus Duisburg","subtitle": "Der Blick in die Region","summary": "Der Blick in die Region","description": "Hier erfahre
n Sie, was in Ihrer Region passiert.Produziert in HD","genre": [32],"nextEventId": 4221739},{"eventId": 4196477,"episodeId": 4196478,"channelName": "n-tv","channelUuid": "327bd4878b5a2c85c1dd2e81280315ba","channelNumber": "3","channelIcon": "imagecache/301","start": 1492750200,"stop": 1492750800,"title": "Teleb\xc3\xb6rse","nextEventId": 4196479},{"eventId": 4208337,"episodeId": 4208338,"channelName": "DMAX","channelUuid": "e7cafb22c10dd896c73c474af4b7387f","channelNumber": "63","channelIcon": "imagecache/361","start": 1492750200,"stop": 1492757700,"title": "Infomercial","nextEventId": 4210117},{"eventId": 4208453,"episodeId": 4208454,"channelName": "Disney Channel","channelUuid": "0605842c127ccd3f12b26ace771795d3","channelNumber": "13","channelIcon": "imagecache/311","start": 1492750200,"stop": 1492752000,"title": "Micky Maus Wunderhaus","subtitle": "Minnies Bienengeschichte Animations-Serie, USA 2009","summary": "Minnies Bienengeschichte Animations-Serie, USA 2009","description": "Folge 63, Ein Windsto\xc3\x9f hat Summsumm, den Bienenjungen, von seiner Blume im Micky-Park weggeweht. Unsere Freunde wollen ihm helfen zur\xc3\xbcckzufinden, aber weil Donald Summsumm beleidigt, verlieren sie die Biene aus den Augen. Mit Hilfe ihrer Ohren machen sich Micky und seine Freunde auf Lauschsuche nach Summsumm.","nextEventId": 4208455},{"eventId": 4222235,"episodeId": 4222236,"channelName": "WDR HD K\xc3\xb6ln","channelUuid": "00db465c295b56ebf374d56dba11b2bb","channelNumber": "50","channelIcon": "imagecache/348","start": 1492750200,"stop": 1492751700,"title": "Lokalzeit aus Duisburg","subtitle": "Der Blick in die Region","summary": "Der Blick in die Region","description": "Hier erfahren Sie, was in Ihrer Region passiert.Produziert in HD","genre": [32],"nextEventId": 4222237}]}') (most recent call last):
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/TvplexendChannel.bundle/Contents/Code/init.py", line 216, in fetch
return JSON.ObjectFromURL(url=url, headers=headers, values=values, encoding='latin1')

File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 146, in ObjectFromURL
).content, encoding, max_size=max_size)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 97, in ObjectFromString
return self._core.data.json.from_string(string, encoding)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/data.py", line 180, in from_string
return demjson.decode(jsonstring, encoding)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 2135, in decode
obj = j.decode( unitxt )
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1706, in decode
r = self.decodeobj(txt, 0, only_object_or_array=not self._allow_any_type_at_start)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1666, in decodeobj
obj, i = self.decode_composite(txt, i, imax)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1614, in decode_composite
rval = self.decodeobj(txt, i)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1666, in decodeobj
obj, i = self.decode_composite(txt, i, imax)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1595, in decode_composite
r = self.decodeobj(txt, i, identifier_as_string=False)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1666, in decodeobj
obj, i = self.decode_composite(txt, i, imax)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1614, in decode_composite
rval = self.decodeobj(txt, i)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1670, in decodeobj
obj, i = self.decode_string(txt, i, imax)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/demjson.py", line 1366, in decode_string
raise JSONDecodeError('control characters must be escaped inside JSON string literals',s[i:])
JSONDecodeError: ('control characters must be escaped inside JSON string literals', u'\x05ltv.de \nWeb www.bibeltv.de","nextEventId": 4192107},{"eventId": 4209305,"episodeId": 4209306,"channelName": "Zee.One","channelUuid": "fa3afc4977595b1906725c780bf395d4","channelNumber": "0","channelIcon": "imagecache/460","start": 1492749900,"stop": 1492751700,"title": "Infomercials","subtitle": "Werbesendung","summary": "Werbesendung","nextEventId": 4209307},{"eventId": 4192983,"episodeId": 4192984,"channelName": "PHOENIX HD","channelUuid": "75ff817154be9768bd54ee7087c17d22","channelNumber": "58","channelIcon": "imagecache/356","start": 1492749900,"stop": 1492752600,"title": "Geheimnisvolle Orte","subtitle": "Troja und der Schatz des Priamos","summary": "Troja und der Schatz des Priamos","description": "Am 31. Mai 1873 st\xc3\xb6\xc3\x9ft der Kaufmann und Privatgelehrte Heinrich Schliemann bei seinen Grabungen in einem H\xc3\xbcgel an der K\xc3\xbcste Kleinasiens an einer alten Befestigungsmauer auf eine Steinkiste. Darin enthalten: goldene Gef\xc3\xa4\xc3\x9fe, fein gearbeitete Schmuckst\xc3\xbccke und prachtvolle Diademe. F\xc3\xbcr den deutschen Hobbyarch\xc3\xa4ologen ist klar: Dies muss er sein - der \"Schatz des Priamos\"!Produziert in HD","genre": [112],"nextEventId": 4192985},{"eventId": 4187719,"episodeId": 4187720,"channelName": "ARD-alpha","channelUuid": "4661f8fc1733295c196edf12f7aa2b14","channelNumber": "62","channelIcon": "imagecache/360","start": 1492749900,"stop": 1492750800,"title": "Mythen - Michael K\xc3\xb6hlmeier erz\xc3\xa4hlt Sagen des klassischen Altertums","description": "Perseus VPS:06:45:00 Sendedauer: 15 StereoProduziert in HD","genre": [112],"nextEventId": 4187721},{"eventId": 4224773,"episodeId": 4224774,"channelName": "WDR HD K\xc3\xb6ln","channelUuid": "ac0fed00f026c534e9e22b0364d8a0e2","channelNumber": "0","channelIcon": "imagecache/348","start": 1492750200,"stop": 1492751700,"title": "Lokalzeit aus Duisburg","subtitle": "Der Blick in die Region","summary": "Der Blick in die Region","description": "Hier erfahren Sie, was in Ihrer Region passiert.Produziert in HD","genre": [32],"nextEventId": 4224775},{"eventId": 4221737,"episodeId": 4221738,"channelName": "WDR HD K\xc3\xb6ln","channelUuid": "79b82704e8254ea8bb78ec26cfdd7a2f","channelNumber": "0","channelIcon": "imagecache/348","start": 1492750200,"stop": 1492751700,"title": "Lokalzeit aus Duisburg","subtitle": "Der Blick in die Region","summary": "Der Blick in die Region","description": "Hier erfahren Sie, was in Ihrer Region passiert.Produziert in HD","genre": [32],"nextEventId": 4221739},{"eventId": 4196477,"episodeId": 4196478,"channelName": "n-tv","channelUuid": "327bd4878b5a2c85c1dd2e81280315ba","channelNumber": "3","channelIcon": "imagecache/301","start": 1492750200,"stop": 1492750800,"title": "Teleb\xc3\xb6rse","nextEventId": 4196479},{"eventId": 4208337,"episodeId": 4208338,"channelName": "DMAX","channelUuid": "e7cafb22c10dd896c73c474af4b7387f","channelNumber": "63","channelIcon": "imagecache/361","start": 1492750200,"stop": 1492757700,"title": "Infomercial","nextEventId": 4210117},{"eventId": 4208453,"episodeId": 4208454,"channelName": "Disney Channel","channelUuid": "0605842c127ccd3f12b26ace771795d3","channelNumber": "13","channelIcon": "imagecache/311","start": 1492750200,"stop": 1492752000,"title": "Micky Maus Wunderhaus","subtitle": "Minnies Bienengeschichte Animations-Serie, USA 2009","summary": "Minnies Bienengeschichte Animations-Serie, USA 2009","description": "Folge 63, Ein Windsto\xc3\x9f hat Summsumm, den Bienenjungen, von seiner Blume im Micky-Park weggeweht. Unsere Freunde wollen ihm helfen zur\xc3\xbcckzufinden, aber weil Donald Summsumm beleidigt, verlieren sie die Biene aus den Augen. Mit Hilfe ihrer Ohren machen sich Micky und seine Freunde auf Lauschsuche nach Summsumm.","nextEventId": 4208455},{"eventId": 4222235,"episodeId": 4222236,"channelName": "WDR HD K\xc3\xb6ln","channelUuid": "00db465c295b56ebf374d56dba11b2bb","channelNumber": "50","channelIcon": "imagecache/348","start": 1492750200,"stop": 1492751700,"title": "Lokalzeit aus Duisburg","subtitle": "Der Blick in die Region","summary": "Der Blick in die Region","description": "Hier erfahren Sie, was in Ihrer Region passiert.Produziert in HD","genre": [32],"nextEventId": 4222237}]}')

2017-04-21 06:48:10,385 (7ff1a2ffd700) : DEBUG (base:117) - Checking if at.gaubatz.patrick.tvplexend.channel is broken

is there a problem with german characters - ä,ö,ü ???

@Jones1024
Copy link
Author

ok, it works. I had to set the default language in tvheadend to german.

rishubil added a commit to rishubil/TvplexendChannel.bundle that referenced this issue May 10, 2017
I think It is not a good solution of pgaubatz#16
It seems a problem of tvheadend api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants