Git Product home page Git Product logo

tvheadend-ng.bundle's People

Contributors

andiwand avatar fritz-fritz avatar monkeydave avatar oriolj avatar realriot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tvheadend-ng.bundle's Issues

Only works for an admin account

Thanks very much for this plugin, this is more of a question than an issue. I noticed when I was setting up an account in TVH for the NG plugin that only an admin account would work. Otherwise it would fail to list the channels. Is this by design or am I doing something wrong?

'utf8' codec can't decode

With the current version "Tvheadend 4.1-459 ~ g987dc11" I get back the error "JSON Request failed: 'utf8' codec can not decode byte". And the API version I had to change again to 18.
Can someone help me?

Can't play using DirectPlay in ATV

Hi,

I have set my ATV to use direct play. When I try to play the tvchannels from tvheadend I get an error instantly on the ATV .

Since DVB-S2 uses h264 it should be possible to play these channels directly without transcoding on the ATV?

This is found in the logs:

Plex Media Server.log

Jan 03, 2015 22:13:40 [0x7f739fbfe700] DEBUG - * function_args => Y2VyZWFsMQoxCmRpY3QKMQp1ODgKaHR0cDovL3BsZXg6cGxleEBicmFpbjo5OTgxL3N0cmVhbS9jaGFubmVsLzkyZDlmYjE5ZGEyMjkwNDUyMTJkYmJiYWUxNTIyZjk0P3Byb2ZpbGU9cGFzc3MzCnVybHIwCg__
Jan 03, 2015 22:13:40 [0x7f739fbfe700] DEBUG - Request range: 0 to 1
Jan 03, 2015 22:13:40 [0x7f739fbfe700] DEBUG - Plug-in com.plexapp.plugins.tvheadend-ng has been used 1986 times.
Jan 03, 2015 22:13:40 [0x7f739fbfe700] DEBUG - [com.plexapp.plugins.tvheadend-ng] Sending command over HTTP (GET): /video/tvheadend-ng/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1ODgKaHR0cDovL3BsZXg6cGxleEBicmFpbjo5OTgxL3N0cmVhbS9jaGFubmVsLzkyZDlmYjE5ZGEyMjkwNDUyMTJkYmJiYWUxNTIyZjk0P3Byb2ZpbGU9cGFzc3MzCnVybHIwCg__
Jan 03, 2015 22:13:40 [0x7f739fbfe700] DEBUG - HTTP requesting to: http://127.0.0.1:38168/video/tvheadend-ng/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1ODgKaHR0cDovL3BsZXg6cGxleEBicmFpbjo5OTgxL3N0cmVhbS9jaGFubmVsLzkyZDlmYjE5ZGEyMjkwNDUyMTJkYmJiYWUxNTIyZjk0P3Byb2ZpbGU9cGFzc3MzCnVybHIwCg__
Jan 03, 2015 22:13:40 [0x7f739fbfe700] DEBUG - [com.plexapp.plugins.tvheadend-ng] HTTP reply status 302, with 0 bytes of content.
Jan 03, 2015 22:13:41 [0x7f73a6bff700] DEBUG - Request: [172.16.1.144:50099] GET /:/timeline?ratingKey=92d9fb19da229045212dbbbae1522f94&key=/video/tvheadend-ng/:/function/createTVChannelObject?function_args=Y2VyZWFsMQo2CmRpY3QKZGljdApkaWN0Cmxpc3QKbGlzdApsaXN0CjUKczExClBsZXhDb25uZWN0czgKY3Byb2R1Y3RiMXM5CmNvbnRhaW5lcnMzCmlPU3M5CmNwbGF0Zm9ybXIxCnM4CmNoYW5pbmZvcjIKczcKY2hhbm5lbDcKczUKMjM6MzBzOAplcGdfc3RvcGk1NDAwMDAwCnMxMgplcGdfZHVyYXRpb251MjIKVW5nZSBrb21taXNzYXJpZSBNb3JzZXM5CmVwZ190aXRsZXUxNjYKS3JpbWluYWxzZXJpZS4gRGV0IMOkciB2w6RybGRzY3VwIG9jaCBFbmdsYW5kIG3DtnRlciBBcmdlbnRpbmEgaSBrdmFydHNmaW5hbC4gT3hmb3JkcyBnYXRvciDDpHIgdG9tbWEuIEVuIMOkbGRyZSBtYW4gYmxpciBicnV0YWx0IG3DtnJkYWQgcMOlIGV0dCBuw6RzdGFuIHRvbXQgbXVzZXVtLnMxNQplcGdfZGVzY3JpcHRpb25pMQpzNwppY29udXJsczUKMjI6MDBzOQplcGdfc3RhcnRzMApzMTEKZXBnX3N1bW1hcnkxMwp1MzIKOTJkOWZiMTlkYTIyOTA0NTIxMmRiYmJhZTE1MjJmOTR1NAp1dWlkcjMKdTQKdGFnc3UwCnU3CmJvdXF1ZXRpMAp1MTIKZHZyX3BzdF90aW1lcjQKdTcKZXBnZ3JhYmIxdTcKZW5hYmxlZGkxCnU2Cm51bWJlcnUzNQovMV8wXzFfQThFXzJDXzQ2X0ZGRjUwMDAwXzBfMF8wLnBuZ3UxNQppY29uX3B1YmxpY191cmxyNQp1OApzZXJ2aWNlc3U0MgpwaWNvbjovLzFfMF8xX0E4RV8yQ180Nl9GRkY1MDAwMF8wXzBfMC5wbmd1NAppY29uYjF1NwplcGdhdXRvaTAKdTEyCmR2cl9wcmVfdGltZXU0ClNWVDF1NApuYW1lMwp1MzIKMzNjYWJiZDA0ZmExNjU2Y2NkMDg1OWNjZTljYjUzM2J1MzIKNzQ4MGY5YzEyZDA2N2NhYjQyMjU2NDU1MzVlN2ExMzh1MzIKN2VhMGY0NzFjYjNiNWE4MzljN2RhYjA1OTE4ZDc3ZTUwCjIKdTMyCjBiNjU2NjYyYWZhZmZlYmNhYmYyMTZlODU5OWU1YWYzdTMyCmQ5YzkyMjQ4MzQ3MTQwOTJjODc2N2U5MzhlNmI4NmNhcjAK&duration=5400000&state=stopped&time=-1&X-Plex-Client-Identifier=C0HJCTCEDRHN&X-Plex-Device-Name=Living%20Room%20Apple%20TV (4 live)
Jan 03, 2015 22:13:41 [0x7f73a6bff700] DEBUG - * ratingKey => 92d9fb19da229045212dbbbae1522f94
Jan 03, 2015 22:13:41 [0x7f73a6bff700] ERROR - Had trouble breaking key=/video/tvheadend-ng/:/function/createTVChannelObject?function_args=Y2VyZWFsMQo2CmRpY3QKZGljdApkaWN0Cmxpc3QKbGlzdApsaXN0CjUKczExClBsZXhDb25uZWN0czgKY3Byb2R1Y3RiMXM5CmNvbnRhaW5lcnMzCmlPU3M5CmNwbGF0Zm9ybXIxCnM4CmNoYW5pbmZvcjIKczcKY2hhbm5lbDcKczUKMjM6MzBzOAplcGdfc3RvcGk1NDAwMDAwCnMxMgplcGdfZHVyYXRpb251MjIKVW5nZSBrb21taXNzYXJpZSBNb3JzZXM5CmVwZ190aXRsZXUxNjYKS3JpbWluYWxzZXJpZS4gRGV0IMOkciB2w6RybGRzY3VwIG9jaCBFbmdsYW5kIG3DtnRlciBBcmdlbnRpbmEgaSBrdmFydHNmaW5hbC4gT3hmb3JkcyBnYXRvciDDpHIgdG9tbWEuIEVuIMOkbGRyZSBtYW4gYmxpciBicnV0YWx0IG3DtnJkYWQgcMOlIGV0dCBuw6RzdGFuIHRvbXQgbXVzZXVtLnMxNQplcGdfZGVzY3JpcHRpb25pMQpzNwppY29udXJsczUKMjI6MDBzOQplcGdfc3RhcnRzMApzMTEKZXBnX3N1bW1hcnkxMwp1MzIKOTJkOWZiMTlkYTIyOTA0NTIxMmRiYmJhZTE1MjJmOTR1NAp1dWlkcjMKdTQKdGFnc3UwCnU3CmJvdXF1ZXRpMAp1MTIKZHZyX3BzdF90aW1lcjQKdTcKZXBnZ3JhYmIxdTcKZW5hYmxlZGkxCnU2Cm51bWJlcnUzNQovMV8wXzFfQThFXzJDXzQ2X0ZGRjUwMDAwXzBfMF8wLnBuZ3UxNQppY29uX3B1YmxpY191cmxyNQp1OApzZXJ2aWNlc3U0MgpwaWNvbjovLzFfMF8xX0E4RV8yQ180Nl9GRkY1MDAwMF8wXzBfMC5wbmd1NAppY29uYjF1NwplcGdhdXRvaTAKdTEyCmR2cl9wcmVfdGltZXU0ClNWVDF1NApuYW1lMwp1MzIKMzNjYWJiZDA0ZmExNjU2Y2NkMDg1OWNjZTljYjUzM2J1MzIKNzQ4MGY5YzEyZDA2N2NhYjQyMjU2NDU1MzVlN2ExMzh1MzIKN2VhMGY0NzFjYjNiNWE4MzljN2RhYjA1OTE4ZDc3ZTUwCjIKdTMyCjBiNjU2NjYyYWZhZmZlYmNhYmYyMTZlODU5OWU1YWYzdTMyCmQ5YzkyMjQ4MzQ3MTQwOTJjODc2N2U5MzhlNmI4NmNhcjAK
Jan 03, 2015 22:13:41 [0x7f73a6bff700] ERROR - ERROR: Parsing request failed.
Jan 03, 2015 22:14:41 [0x7f739fbfe700] DEBUG - Request: [127.0.0.1:58476] GET / (4 live)
Jan 03, 2015 22:14:41 [0x7f739fbfe700] DEBUG - It took 0.000236 sec to serialize a list with 15 elements.

com.plexapp.plugins.tvheadend-ng.log

2015-01-03 22:13:39,238 (7f9fa3fff700) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/function/createTVChannelObject?function_args=Y2VyZWFsMQo2CmRpY3QKZGljdApkaWN0Cmxpc3QKbGlzdApsaXN0CjUKczExClBsZXhDb25uZWN0czgKY3Byb2R1Y3RiMXM5CmNvbnRhaW5lcnMzCmlPU3M5CmNwbGF0Zm9ybXIxCnM4CmNoYW5pbmZvcjIKczcKY2hhbm5lbDcKczUKMjM6MzBzOAplcGdfc3RvcGk1NDAwMDAwCnMxMgplcGdfZHVyYXRpb251MjIKVW5nZSBrb21taXNzYXJpZSBNb3JzZXM5CmVwZ190aXRsZXM1CjIyOjAwczkKZXBnX3N0YXJ0aTEKczcKaWNvbnVybHUxNjYKS3JpbWluYWxzZXJpZS4gRGV0IMOkciB2w6RybGRzY3VwIG9jaCBFbmdsYW5kIG3DtnRlciBBcmdlbnRpbmEgaSBrdmFydHNmaW5hbC4gT3hmb3JkcyBnYXRvciDDpHIgdG9tbWEuIEVuIMOkbGRyZSBtYW4gYmxpciBicnV0YWx0IG3DtnJkYWQgcMOlIGV0dCBuw6RzdGFuIHRvbXQgbXVzZXVtLnMxNQplcGdfZGVzY3JpcHRpb25zMApzMTEKZXBnX3N1bW1hcnkxMwp1MzIKOTJkOWZiMTlkYTIyOTA0NTIxMmRiYmJhZTE1MjJmOTR1NAp1dWlkcjMKdTQKdGFnc3UwCnU3CmJvdXF1ZXRpMAp1MTIKZHZyX3BzdF90aW1lcjQKdTcKZXBnZ3JhYmIxdTcKZW5hYmxlZGkxCnU2Cm51bWJlcnU0ClNWVDF1NApuYW1ldTM1Ci8xXzBfMV9BOEVfMkNfNDZfRkZGNTAwMDBfMF8wXzAucG5ndTE1Cmljb25fcHVibGljX3VybHI1CnU4CnNlcnZpY2VzYjF1NwplcGdhdXRvaTAKdTEyCmR2cl9wcmVfdGltZXU0MgpwaWNvbjovLzFfMF8xX0E4RV8yQ180Nl9GRkY1MDAwMF8wXzBfMC5wbmd1NAppY29uMwp1MzIKMzNjYWJiZDA0ZmExNjU2Y2NkMDg1OWNjZTljYjUzM2J1MzIKNzQ4MGY5YzEyZDA2N2NhYjQyMjU2NDU1MzVlN2ExMzh1MzIKN2VhMGY0NzFjYjNiNWE4MzljN2RhYjA1OTE4ZDc3ZTUwCjIKdTMyCjBiNjU2NjYyYWZhZmZlYmNhYmYyMTZlODU5OWU1YWYzdTMyCmQ5YzkyMjQ4MzQ3MTQwOTJjODc2N2U5MzhlNmI4NmNhcjAK/1
2015-01-03 22:13:39,242 (7f9fa3fff700) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/function/createTVChannelObject
2015-01-03 22:13:39,243 (7f9fa3fff700) : DEBUG (runtime:143) - Calling function 'createTVChannelObject'
2015-01-03 22:13:39,244 (7f9fa3fff700) : INFO (init:276) - Creating TVChannelObject. Container: True
2015-01-03 22:13:39,245 (7f9fa3fff700) : INFO (init:340) - Info for mediaobject: {'epg_stop': '23:30', 'epg_duration': 5400000, 'epg_title': u'Unge kommissarie Morse', 'epg_description': u'Kriminalserie. Det \xe4r v\xe4rldscup och England m\xf6ter Argentina i kvartsfinal. Oxfords gator \xe4r tomma. En \xe4ldre man blir brutalt m\xf6rdad p\xe5 ett n\xe4stan tomt museum.', 'iconurl': 1, 'epg_start': '22:00', 'epg_summary': ''}
2015-01-03 22:13:39,247 (7f9fa3fff700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function createTVChannelObject at 0x1a0dc80>
2015-01-03 22:13:39,251 (7f9fa3fff700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function PlayVideo at 0x1a0db90>
2015-01-03 22:13:39,252 (7f9fa3fff700) : INFO (init:272) - Creating MediaObject for streaming with URL: http://plex:plex@brain:9981/stream/channel/92d9fb19da229045212dbbbae1522f94?profile=pass
2015-01-03 22:13:39,253 (7f9fa3fff700) : INFO (init:340) - Created VideoObject for plex product: PlexConnect on iOS
2015-01-03 22:13:39,258 (7f9fa3fff700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 2670 bytes
2015-01-03 22:13:40,227 (7f9fa3fff700) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/function/createTVChannelObject?function_args=Y2VyZWFsMQo2CmRpY3QKZGljdApkaWN0Cmxpc3QKbGlzdApsaXN0CjUKczExClBsZXhDb25uZWN0czgKY3Byb2R1Y3RiMXM5CmNvbnRhaW5lcnMzCmlPU3M5CmNwbGF0Zm9ybXIxCnM4CmNoYW5pbmZvcjIKczcKY2hhbm5lbDcKczUKMjM6MzBzOAplcGdfc3RvcGk1NDAwMDAwCnMxMgplcGdfZHVyYXRpb251MjIKVW5nZSBrb21taXNzYXJpZSBNb3JzZXM5CmVwZ190aXRsZXM1CjIyOjAwczkKZXBnX3N0YXJ0aTEKczcKaWNvbnVybHUxNjYKS3JpbWluYWxzZXJpZS4gRGV0IMOkciB2w6RybGRzY3VwIG9jaCBFbmdsYW5kIG3DtnRlciBBcmdlbnRpbmEgaSBrdmFydHNmaW5hbC4gT3hmb3JkcyBnYXRvciDDpHIgdG9tbWEuIEVuIMOkbGRyZSBtYW4gYmxpciBicnV0YWx0IG3DtnJkYWQgcMOlIGV0dCBuw6RzdGFuIHRvbXQgbXVzZXVtLnMxNQplcGdfZGVzY3JpcHRpb25zMApzMTEKZXBnX3N1bW1hcnkxMwp1MzIKOTJkOWZiMTlkYTIyOTA0NTIxMmRiYmJhZTE1MjJmOTR1NAp1dWlkcjMKdTQKdGFnc3UwCnU3CmJvdXF1ZXRpMAp1MTIKZHZyX3BzdF90aW1lcjQKdTcKZXBnZ3JhYmIxdTcKZW5hYmxlZGkxCnU2Cm51bWJlcnU0ClNWVDF1NApuYW1ldTM1Ci8xXzBfMV9BOEVfMkNfNDZfRkZGNTAwMDBfMF8wXzAucG5ndTE1Cmljb25fcHVibGljX3VybHI1CnU4CnNlcnZpY2VzYjF1NwplcGdhdXRvaTAKdTEyCmR2cl9wcmVfdGltZXU0MgpwaWNvbjovLzFfMF8xX0E4RV8yQ180Nl9GRkY1MDAwMF8wXzBfMC5wbmd1NAppY29uMwp1MzIKMzNjYWJiZDA0ZmExNjU2Y2NkMDg1OWNjZTljYjUzM2J1MzIKNzQ4MGY5YzEyZDA2N2NhYjQyMjU2NDU1MzVlN2ExMzh1MzIKN2VhMGY0NzFjYjNiNWE4MzljN2RhYjA1OTE4ZDc3ZTUwCjIKdTMyCjBiNjU2NjYyYWZhZmZlYmNhYmYyMTZlODU5OWU1YWYzdTMyCmQ5YzkyMjQ4MzQ3MTQwOTJjODc2N2U5MzhlNmI4NmNhcjAK
2015-01-03 22:13:40,231 (7f9fa3fff700) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/function/createTVChannelObject
2015-01-03 22:13:40,232 (7f9fa3fff700) : DEBUG (runtime:143) - Calling function 'createTVChannelObject'
2015-01-03 22:13:40,233 (7f9fa3fff700) : INFO (init:276) - Creating TVChannelObject. Container: True
2015-01-03 22:13:40,234 (7f9fa3fff700) : INFO (init:340) - Info for mediaobject: {'epg_stop': '23:30', 'epg_duration': 5400000, 'epg_title': u'Unge kommissarie Morse', 'epg_description': u'Kriminalserie. Det \xe4r v\xe4rldscup och England m\xf6ter Argentina i kvartsfinal. Oxfords gator \xe4r tomma. En \xe4ldre man blir brutalt m\xf6rdad p\xe5 ett n\xe4stan tomt museum.', 'iconurl': 1, 'epg_start': '22:00', 'epg_summary': ''}
2015-01-03 22:13:40,236 (7f9fa3fff700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function createTVChannelObject at 0x1a0dc80>
2015-01-03 22:13:40,240 (7f9fa3fff700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function PlayVideo at 0x1a0db90>
2015-01-03 22:13:40,242 (7f9fa3fff700) : INFO (init:272) - Creating MediaObject for streaming with URL: http://plex:plex@brain:9981/stream/channel/92d9fb19da229045212dbbbae1522f94?profile=pass
2015-01-03 22:13:40,243 (7f9fa3fff700) : INFO (init:340) - Created VideoObject for plex product: PlexConnect on iOS
2015-01-03 22:13:40,249 (7f9fa3fff700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 2670 bytes
2015-01-03 22:13:40,935 (7f9fa3fff700) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/function/PlayVideo?function_args=Y2VyZWFsMQoxCmRpY3QKMQp1ODgKaHR0cDovL3BsZXg6cGxleEBicmFpbjo5OTgxL3N0cmVhbS9jaGFubmVsLzkyZDlmYjE5ZGEyMjkwNDUyMTJkYmJiYWUxNTIyZjk0P3Byb2ZpbGU9cGFzc3MzCnVybHIwCg__
2015-01-03 22:13:40,938 (7f9fa3fff700) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/function/PlayVideo
2015-01-03 22:13:40,939 (7f9fa3fff700) : DEBUG (runtime:143) - Calling function 'PlayVideo'
2015-01-03 22:13:40,941 (7f9fa3fff700) : DEBUG (runtime:918) - Response: [302] Redirect, 0 bytes

Fix for INTERNAL bouquets

Hi,

If you don't like to show several "bouquets" in the PLEX, and only show 3 or 4 bouquets, you can hidde any tags that you don't like to show using the option INTERNAL inside the TVH. Nevertheless, this plugin will show all tags, also tags market as internal.

Here a simple modification that hides "bouquets" in Plex (tags in TVH) that are "internal" (HIDDEN):

Change the file "/Contents/Code/init.py" at line #193, change the code:
------------------------------8<----------------------------------------------
if debug == True: Log("Getting channellist for tag: " + tag['name'])
tagList.add(DirectoryObject(key=Callback(getChannels, title=tag['name'], tag=tag['uuid']), title=tag['name']))
else:
------------------------------8<----------------------------------------------

with this code:

------------------------------8<----------------------------------------------
if debug == True: Log("Getting channellist for tag: " + tag['name'])
if (tag['internal'] == False):
tagList.add(DirectoryObject(key=Callback(getChannels, title=tag['name'], tag=tag['uuid']), title=tag['name']))
else:
------------------------------8<----------------------------------------------

This "fixes" the problem!
Regards.

getEPG() encoding error...

System: QNAP server, x86_64 Linux.
Tvheadend version: 4.1-2141~g01c26fc
tvheadend-ng: Downloaded from git today. (https://github.com/realriot/tvheadend-ng.bundle)
Plex: 1.0.3.2461

Debugging and epg debugging set to true. Logs show this:
2016-08-06 00:04:33,674 (-b808470) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:9981/api/epg/events/grid?start=0&limit=2000' 2016-08-06 00:04:33,705 (-b808470) : DEBUG (networking:161) - Fetching 'http://127.0.0.1:9981/api/epg/events/grid?start=0&limit=2000' from the HTTP cache 2016-08-06 00:04:33,706 (-b808470) : INFO (__init__:132) - JSON-Request failed: JSON encoding error 2016-08-06 00:04:33,706 (-b808470) : INFO (__init__:144) - Failed to fetch EPG!

I ran tcpdump and saved to pcap during this. I then extracted the gzipped JSON response from the PCAP. The response looks clean, and processing it through a JSON validator shows it to be valid.

Any clue what could be going on here? There seems to be some type of problem with JSON.ObjectFromURL, however it's unclear what that could be. Maybe it cannot handle gzipped responses?

response.gz

Adding subtitles

While using this plugin in PHT I see that I can toggle between the different audio tracks. (something I can't do in the web-browser)

Subtitles are somehow not passed through.
Is it possible to make subtitles selectable?

Plex Client plays one 1 sec

Hi, after I installed the newest build of tvheadend (3.9.1743) does the plex client on plays 1 sec of a stream. I get at the end "muxer reported errors".
What for Logs do you need?

Here the tvheadend log:
2014-10-20 16:02:58.672 mpegts: 11758.5H in Astra 19.2 German - tuning on Conexant CX24116/CX24118 : DVB-S #1
2014-10-20 16:02:59.361 subscription: "HTTP" subscribing on "Disney XD", weight: 100, adapter: "Conexant CX24116/CX24118 : DVB-S #1", network: "Astra 19.2 German", mux: "11758.5H", provider: "SKY", service: "Disney XD", hostname="127.0.0.1", username="", client="Lavf/55.44.100"
2014-10-20 16:02:59.745 transcode: 1:MPEG2VIDEO ==> Passthrough
2014-10-20 16:02:59.745 transcode: 2:MPEG2AUDIO ==> Passthrough
2014-10-20 16:02:59.745 transcode: 3:TELETEXT ==> Filtered
2014-10-20 16:02:59.745 transcode: 4:CA ==> Filtered
2014-10-20 16:02:59.745 transcode: 5:CA ==> Filtered
2014-10-20 16:02:59.745 transcode: 6:CA ==> Filtered
2014-10-20 16:02:59.745 transcode: 7:CA ==> Filtered
2014-10-20 16:02:59.745 transcode: 8:CA ==> Filtered
2014-10-20 16:02:59.745 transcode: 9:MPEG2AUDIO ==> Passthrough
2014-10-20 16:03:00.583 libav: muxrate VBR,
2014-10-20 16:03:00.583 libav: pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
2014-10-20 16:03:03.710 webui: Stop streaming /stream/channel/519f79f7853e879413b31a6cf2fd739f?mux=mpegts&transcode=1, muxer reported errors
2014-10-20 16:03:03.710 subscription: "HTTP" unsubscribing from "Disney XD", hostname="127.0.0.1", username="", client="Lavf/55.44.100"

Request: Use fan art instead of channel logo on the Channel Information Screen

There is some easy free Python code being uses in some of the other plugins to pull TVDB data.. by querying by the Show title in many cases it is easy to pull a fan art picture for the show, instead of displaying a giant version of the channel logo.

If the episode data is present in tvheadend it might be able to pull even more detailed data.

Working over Browser, but not via Android-App

Hi

I set up this plugin and it works flawlessly when I use Chrome Browser (with or without custom profiles, with or without transcoding). However, when I try to start a channel or a recording on the Android app, it always comes up with an error message saying "lost connection to the plex server". But, I can watch "normal" Plex-content without any problems... Do you have any ideas?

API Version Mismatch even though I'm using version 15

Hi,

I'm trying to use this plugin with TVHeadend version 4.1.373 but I get an error saying there is an API version mismatch. Below is a copy/paste of my TVHeadend "serverinfo" file I downloaded from TVHeadend showing I am using API version 15, is there something I am doing wrong?

{"sw_version":"4.1.373","api_version":15,"name":"Tvheadend","capabilities":["caclient","tvadapters","satip_client","satip_server","imagecache","timeshift","trace","libav"]}

Any help would be appreciated
Thanks!

Cannot get addon to work

Hi Guys,

i need some help over here!
I'm running the latest PMS version and have downloaded the latest addon here from github but after adding IP port user and pw I'm still unable to connect. I'm getting an unknown error the log isn't helpful to me

2015-02-10 19:39:02,768 (108c44000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2015-02-10 19:39:02,769 (108c44000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2015-02-10 19:39:02,770 (108c44000) : INFO (init:87) - JSON-Request: getServerVersion
2015-02-10 19:39:02,784 (108c44000) : INFO (init:108) - JSON-Request failed: HTTP/1.1 1 Unknown returncode

2015-02-10 19:39:02,784 (108c44000) : INFO (init:48) - Configuration error! Displaying error message: Unknown error!
2015-02-10 19:39:02,784 (108c44000) : DEBUG (base:125) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2015-02-10 19:39:02,785 (108c44000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2015-02-10 19:39:02,791 (108c44000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:39:02,791 (108c44000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 627 bytes
2015-02-10 19:47:14,279 (108c44000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/prefs
2015-02-10 19:47:14,280 (108c44000) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2015-02-10 19:47:14,281 (108c44000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/prefs
2015-02-10 19:47:14,283 (108c44000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:47:14,283 (108c44000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1656 bytes
2015-02-10 19:47:30,468 (108c44000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/prefs/set?tvheadend_mpegts_passthrough=false&tvheadend_channelicons=false
2015-02-10 19:47:30,468 (108c44000) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2015-02-10 19:47:30,469 (108c44000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/prefs/set
2015-02-10 19:47:30,470 (108c44000) : DEBUG (preferences:198) - Saved the user preferences
2015-02-10 19:47:30,470 (108c44000) : CRITICAL (sandbox:298) - Function named 'ValidatePrefs' couldn't be found in the current environment
2015-02-10 19:47:30,471 (108c44000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:47:30,471 (108c44000) : DEBUG (runtime:918) - Response: [200] str, 0 bytes
2015-02-10 19:47:33,896 (108c44000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2015-02-10 19:47:33,898 (108c44000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2015-02-10 19:47:33,899 (108c44000) : INFO (init:87) - JSON-Request: getServerVersion
2015-02-10 19:47:33,914 (108c44000) : INFO (init:108) - JSON-Request failed: HTTP/1.1 1 Unknown returncode

2015-02-10 19:47:33,915 (108c44000) : INFO (init:48) - Configuration error! Displaying error message: Unknown error!
2015-02-10 19:47:33,915 (108c44000) : DEBUG (base:125) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2015-02-10 19:47:33,915 (108c44000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2015-02-10 19:47:33,921 (108c44000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:47:33,922 (108c44000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 627 bytes
2015-02-10 19:50:11,950 (7fff798f1310) : INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2015-02-10 19:50:11,950 (7fff798f1310) : DEBUG (core:359) - Using the elevated policy
2015-02-10 19:50:11,950 (7fff798f1310) : DEBUG (core:448) - Starting runtime component.
2015-02-10 19:50:11,951 (7fff798f1310) : DEBUG (core:448) - Starting caching component.
2015-02-10 19:50:11,952 (7fff798f1310) : DEBUG (core:448) - Starting data component.
2015-02-10 19:50:11,952 (7fff798f1310) : DEBUG (core:448) - Starting networking component.
2015-02-10 19:50:11,952 (7fff798f1310) : DEBUG (networking:288) - Loaded HTTP cookies
2015-02-10 19:50:11,952 (7fff798f1310) : DEBUG (caching:108) - No info file found, trashing the cache folder
2015-02-10 19:50:11,988 (7fff798f1310) : DEBUG (networking:458) - Setting the default network timeout to 20.0
2015-02-10 19:50:12,016 (7fff798f1310) : DEBUG (core:448) - Starting localization component.
2015-02-10 19:50:12,016 (7fff798f1310) : INFO (localization:408) - Setting the default locale to en-us
2015-02-10 19:50:12,016 (7fff798f1310) : DEBUG (localization:426) - Loaded en strings
2015-02-10 19:50:12,017 (7fff798f1310) : DEBUG (core:448) - Starting messaging component.
2015-02-10 19:50:12,017 (7fff798f1310) : DEBUG (core:448) - Starting debugging component.
2015-02-10 19:50:12,017 (7fff798f1310) : DEBUG (core:448) - Starting services component.
2015-02-10 19:50:12,017 (7fff798f1310) : DEBUG (core:448) - Starting myplex component.
2015-02-10 19:50:12,018 (7fff798f1310) : DEBUG (core:448) - Starting notifications component.
2015-02-10 19:50:12,018 (104a84000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.tvheadend-ng'
2015-02-10 19:50:12,171 (7fff798f1310) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.tvheadend-ng in namespace 'metadata'
2015-02-10 19:50:12,183 (7fff798f1310) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2015-02-10 19:50:12,321 (104b04000) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2015-02-10 19:50:12,321 (7fff798f1310) : DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2015-02-10 19:50:12,322 (7fff798f1310) : DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2015-02-10 19:50:12,322 (104b04000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2015-02-10 19:50:12,322 (7fff798f1310) : DEBUG (core:150) - Finished starting framework core
2015-02-10 19:50:12,323 (10530a000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2015-02-10 19:50:12,323 (7fff798f1310) : DEBUG (core:558) - Loading plug-in code
2015-02-10 19:50:12,477 (7fff798f1310) : DEBUG (core:564) - Finished loading plug-in code
2015-02-10 19:50:12,543 (10530a000) : DEBUG (core:536) - Machine identifier is 190ad1954100ef1b0dec334c7def4114257b3daf
2015-02-10 19:50:12,558 (10530a000) : DEBUG (core:537) - Server version is 0.9.11.7.803-87d0708
2015-02-10 19:50:12,603 (104b04000) : DEBUG (services:362) - Loaded services
2015-02-10 19:50:12,604 (7fff798f1310) : DEBUG (runtime:640) - Adding a prefix handler for 'TV-Headend' ('/video/tvheadend-ng')
2015-02-10 19:50:12,607 (104f07000) : DEBUG (services:438) - No shared code to load
2015-02-10 19:50:12,608 (7fff798f1310) : INFO (core:609) - Started plug-in
2015-02-10 19:50:12,608 (7fff798f1310) : DEBUG (socketinterface:160) - Starting socket server
2015-02-10 19:50:12,668 (7fff798f1310) : DEBUG (runtime:1111) - Created a thread named 'start'
2015-02-10 19:50:12,669 (7fff798f1310) : INFO (socketinterface:184) - Socket server started on port 63587
2015-02-10 19:50:12,669 (7fff798f1310) : INFO (pipeinterface:25) - Entering run loop
2015-02-10 19:50:12,669 (7fff798f1310) : DEBUG (runtime:717) - Handling request GET /:/prefixes
2015-02-10 19:50:12,670 (7fff798f1310) : DEBUG (runtime:814) - Found route matching /:/prefixes
2015-02-10 19:50:12,671 (7fff798f1310) : DEBUG (runtime:918) - Response: [200] MediaContainer, 470 bytes
2015-02-10 19:50:12,697 (104f07000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2015-02-10 19:50:12,698 (104f07000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2015-02-10 19:50:12,699 (104f07000) : WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 7 column 2 (char 94)
2015-02-10 19:50:12,712 (104f07000) : DEBUG (preferences:256) - Loaded preferences from DefaultPrefs.json
2015-02-10 19:50:12,732 (104f07000) : DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.plugins.tvheadend-ng
2015-02-10 19:50:12,732 (104f07000) : INFO (init:87) - JSON-Request: getServerVersion
2015-02-10 19:50:12,749 (104f07000) : INFO (init:108) - JSON-Request failed: HTTP/1.1 1 Unknown returncode

2015-02-10 19:50:12,749 (104f07000) : INFO (init:48) - Configuration error! Displaying error message: Unknown error!
2015-02-10 19:50:12,749 (104f07000) : DEBUG (base:125) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2015-02-10 19:50:12,750 (104f07000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2015-02-10 19:50:12,755 (104f07000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:50:12,756 (104f07000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 627 bytes
2015-02-10 19:50:12,921 (104f07000) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/art-default.jpg?t=1423597804
2015-02-10 19:50:12,933 (104f07000) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/art-default.jpg
2015-02-10 19:50:13,049 (104f07000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:50:13,049 (104f07000) : DEBUG (runtime:918) - Response: [200] DataObject, 401713 bytes
2015-02-10 19:50:14,635 (104f07000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2015-02-10 19:50:14,636 (104f07000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2015-02-10 19:50:14,637 (104f07000) : INFO (init:87) - JSON-Request: getServerVersion
2015-02-10 19:50:14,641 (104f07000) : INFO (init:108) - JSON-Request failed: HTTP/1.1 1 Unknown returncode

2015-02-10 19:50:14,641 (104f07000) : INFO (init:48) - Configuration error! Displaying error message: Unknown error!
2015-02-10 19:50:14,642 (104f07000) : DEBUG (base:125) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2015-02-10 19:50:14,642 (104f07000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2015-02-10 19:50:14,665 (104f07000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:50:14,665 (104f07000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 627 bytes
2015-02-10 19:50:16,745 (104f07000) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/icon-default.png?t=1423597804
2015-02-10 19:50:16,746 (104f07000) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/icon-default.png
2015-02-10 19:50:16,943 (104f07000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:50:16,943 (104f07000) : DEBUG (runtime:918) - Response: [200] DataObject, 93719 bytes
2015-02-10 19:50:20,125 (104f07000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/prefs
2015-02-10 19:50:20,126 (104f07000) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2015-02-10 19:50:20,127 (104f07000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/prefs
2015-02-10 19:50:20,129 (104f07000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:50:20,129 (104f07000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1658 bytes
2015-02-10 19:50:42,336 (104f07000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2015-02-10 19:50:42,338 (104f07000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2015-02-10 19:50:42,338 (104f07000) : INFO (init:87) - JSON-Request: getServerVersion
2015-02-10 19:50:42,351 (104f07000) : INFO (init:108) - JSON-Request failed: HTTP/1.1 1 Unknown returncode

2015-02-10 19:50:42,351 (104f07000) : INFO (init:48) - Configuration error! Displaying error message: Unknown error!
2015-02-10 19:50:42,352 (104f07000) : DEBUG (base:125) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2015-02-10 19:50:42,352 (104f07000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2015-02-10 19:50:42,359 (104f07000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:50:42,359 (104f07000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 627 bytes
2015-02-10 19:56:00,768 (104f07000) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2015-02-10 19:56:00,769 (104f07000) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2015-02-10 19:56:00,770 (104f07000) : INFO (init:87) - JSON-Request: getServerVersion
2015-02-10 19:56:00,795 (104f07000) : INFO (init:108) - JSON-Request failed: HTTP/1.1 1 Unknown returncode

2015-02-10 19:56:00,796 (104f07000) : INFO (init:48) - Configuration error! Displaying error message: Unknown error!
2015-02-10 19:56:00,796 (104f07000) : DEBUG (base:125) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2015-02-10 19:56:00,796 (104f07000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2015-02-10 19:56:00,802 (104f07000) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-02-10 19:56:00,802 (104f07000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 627 bytes

However other TVheadend clients and XBMC are working TVheadend is v. 3.4

Any help or suggestions appreciated

Thanks

JSON Encoding Error

Hi,

each time I try to access my TVH server I get this:

2017-01-03 23:34:01,612 (80a82c000) : INFO (__init__:132) - JSON-Request failed: JSON encoding error 2017-01-03 23:34:01,612 (80a82c000) : INFO (__init__:151) - Failed to fetch DVB services! 2017-01-03 23:34:01,613 (80a82c000) : INFO (__init__:242) - Could not create channellist! Showing error. 2017-01-03 23:34:01,617 (80a82c000) : DEBUG (runtime:924) - Response: [200] MediaContainer, 437 bytes

So far I do get the Channel Tags displaying correctly but unfortunately nothing else :-(

Having read previous issues could this be related to Plex JSON format or Python strings??

TV does not play.

I configured the plugin. Unfortunately, when choosing. Higher resolution I get info that "cannot load m3u8 404".

The more it worries me when selecting a lower resolution player only loading and nothing plays
I have the last version of TVHeadend compiled from github

Buffer problems with Samsung Smart TV Plex App

Hi, thanks for the great Plugin. This issue is probably not related to the plugin itself, but I hope to find some help here.
Everything works fine for me, except the most important part. When I open a channel the stream starts after a few seconds of buffering, but it's getting stuck after maybe 10-20 sec to buffer again. I tested the the LAN connection my TV uses with my Laptop and there it plays fine. Even via WiFi the stream is stable on my Laptop. I use the Samsung UE46F6470 as a client.
Does someone have any idea what I might tweak to get this running?
Best
Niels

icon image size

Is there a way to make icon images shown on plex more small ?

KeyError: 'icon_public_url'

When there is a mix of channels with icons and channels without icons, and Display Icons is set, the exception KeyError is thrown.

2015-06-05 14:42:20,298 (7f8d93fff700) : CRITICAL (sandbox:303) - Exception when calling function 'getChannels' (most recent call last):
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 294, in call_named_function
result = f(_args, *_kwargs)
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/tvheadend-ng.bundle/Contents/Code/init.py", line 213, in getChannels
if debug == True: Log("Could not create channellist! Showing error.")
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/tvheadend-ng.bundle/Contents/Code/init.py", line 327, in createTVChannelObject
Log("Channel Icon" + channel['icon_public_url'])
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
getitem = lambda x, y: x.getitem(y),
KeyError: 'icon_public_url'

I've worked around this locally by replacing line 327-8 with:

    try:
            if Prefs['tvheadend_channelicons'] == True and channel['icon_public_url'].startswith('imagecache'):
                    icon = 'http://%s:%s@%s:%s%s%s' % (Prefs['tvheadend_user'], Prefs['tvheadend_pass'], Prefs['tvheadend_host'], Prefs['tvheadend_web_port'], Prefs['tvheadend_web_rootpath'], channel['icon_public_url'])
    except KeyError:
            pass

But there may be a more elegant solution.

Cheers,
A.

Passing dvb sub-streams to plex.

I've tried everything to get subtitles selection from tvheadend to my Plex Media Server using this fabulous channel/plugin.

I use the default profile "pass" in my tvheadend-ng.bundle, and with that set, I suppose tvheadend will also pass the sub-streams.

That's in fact not working at all.

Instead I get AUDIO Unknown and SUBTITLES None. Is this a PMS or a plugin problem?

The stream works great in VLC btw.

howto force transcoding in rasplex

Hello,

im using your plugin in rasplex.
it always plays the tvheadend stream directly. Which works perfect for local network.

But using your plugin from remote (rasplex) results in error because tvheadend server is not available.

Using your plugin from iOS or Android => PMS uses transcoding and everything works flawless.
Because it plays from PMS and not directly from tvheadend.

Is there a way to force transcoding for a specific device? e.g. Rasplex Raspberry?

Because no matter what i do Rasplex always plays directly from tvheadend.

regards
firsttris

getEpgGrid seems to be broken in latest commits

getEpgGrid seems to be broken in latest commits. This leads to the following Error "Request failed! Please check channel settings and tvheadend status." Without showing any channels on plex webapp oder iphone/ipad app. Maybe it could be important for you, my EPG contains special characters like üöäß.

Revert back to Commit cb7a994 solved the issue so far.

Log:

2015-09-16 15:14:56,401 (7fd9e37fe700) : INFO (init:117) - JSON-Request successfull!
2015-09-16 15:14:56,402 (7fd9e37fe700) : INFO (init:182) - Getting channellist for tag: KDG-HD
2015-09-16 15:14:56,402 (7fd9e37fe700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function getChannels at 0x1d87d70>
2015-09-16 15:14:56,403 (7fd9e37fe700) : INFO (init:182) - Getting channellist for tag: SKY
2015-09-16 15:14:56,404 (7fd9e37fe700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function getChannels at 0x1d87d70>
2015-09-16 15:14:56,404 (7fd9e37fe700) : INFO (init:182) - Getting channellist for tag: TV
2015-09-16 15:14:56,405 (7fd9e37fe700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function getChannels at 0x1d87d70>
2015-09-16 15:14:56,406 (7fd9e37fe700) : INFO (init:182) - Getting channellist for tag: TV channels
2015-09-16 15:14:56,406 (7fd9e37fe700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function getChannels at 0x1d87d70>
2015-09-16 15:14:56,407 (7fd9e37fe700) : INFO (init:190) - Count of configured tags within TV-Headend: 4
2015-09-16 15:14:56,409 (7fd9e37fe700) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-09-16 15:14:56,410 (7fd9e37fe700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2015-09-16 15:14:59,442 (7fd9e37fe700) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2015-09-16 15:14:59,444 (7fd9e37fe700) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2015-09-16 15:14:59,446 (7fd9e37fe700) : INFO (init:96) - JSON-Request: getServerVersion
2015-09-16 15:14:59,449 (7fd9e37fe700) : DEBUG (networking:166) - Requesting 'http://localhost:9981/api/serverinfo'
2015-09-16 15:14:59,455 (7fd9e37fe700) : INFO (init:117) - JSON-Request successfull!
2015-09-16 15:14:59,455 (7fd9e37fe700) : INFO (init:35) - Configuration OK!
2015-09-16 15:14:59,456 (7fd9e37fe700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function getChannels at 0x1d87d70>
2015-09-16 15:14:59,458 (7fd9e37fe700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function getChannelsByTag at 0x1d87cf8>
2015-09-16 15:14:59,459 (7fd9e37fe700) : WARNING (runtime:1059) - Generating a callback path for a function with no route: <function getRecordings at 0x1d87de8>
2015-09-16 15:14:59,460 (7fd9e37fe700) : DEBUG (base:117) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2015-09-16 15:14:59,461 (7fd9e37fe700) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2015-09-16 15:14:59,475 (7fd9e37fe700) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2015-09-16 15:14:59,475 (7fd9e37fe700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1036 bytes
2015-09-16 15:14:59,937 (7fd9e37fe700) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/function/getChannels?function_args=Y2VyZWFsMQoxCmRpY3QKMgpzMzIKN2EzM2FjZGNmOTU1N2NjNTQ0NWY5MjE5ZGYyNjY2Y2FzMwp0YWdzNgpLREctSERzNQp0aXRsZXIwCg__
2015-09-16 15:14:59,938 (7fd9e37fe700) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/function/getChannels
2015-09-16 15:14:59,939 (7fd9e37fe700) : DEBUG (runtime:143) - Calling function 'getChannels'
2015-09-16 15:14:59,939 (7fd9e37fe700) : INFO (init:96) - JSON-Request: getChannelGrid
2015-09-16 15:14:59,943 (7fd9e37fe700) : DEBUG (networking:166) - Requesting 'http://localhost:9981/api/channel/grid?start=0&limit=999999'
2015-09-16 15:14:59,984 (7fd9e37fe700) : INFO (init:117) - JSON-Request successfull!
2015-09-16 15:14:59,985 (7fd9e37fe700) : INFO (init:96) - JSON-Request: getEpgGrid
2015-09-16 15:14:59,988 (7fd9e37fe700) : DEBUG (networking:166) - Requesting 'http://localhost:9981/api/epg/events/grid?start=0&limit=1000'
2015-09-16 15:15:00,069 (7fd9e37fe700) : WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Invalid control character '\x19' at: line 1 column 140501 (char 140500)

Support TVH_HTTP_ROOT path

My tvheadend is proxied through a https nginx box. As part of this setup, I use the /tv/ identifier in the URL which is set as the TVH_HTTP_ROOT in the Tvheadend configuration defaults (running Debian jessie).

The plugin for plex errors as it must assume the path is /, where it infact needs to have a base of /tv. If I put /tv on the port it works (config included below).

image

A new field to specify the TVH_HTTP_ROOT should be added to accommodate for this field (defaulting to /), or otherwise could utilise the htsp "hello" to retrieve the web root.

Transcoding on Plex MediaServer

Hi,

I have installed the latest Version and I wount to transcode the TV Streams at the Plex Server, I have
checked MPEG-TS Pass-Through and the default profile is pass. But I can not get transcodet content. And I cann not set the Bandwith in the client.
Is ther some option to activate it?

Arthur

Playback stops after a few seconds on the Plex android app

When I start a tv stream on the Plex android app, it plays back for a few seconds and then stops (as though the video has ended). Oddly, if I use the same app to cast to my chromecast, it plays back without stopping but freezes every so often. Any idea how I can fix this?

transcoding in plex fails, frame dimension errors.

ERROR - [Transcoder] [mpeg2video @ 0x2d7f2a0] Invalid frame dimensions 0x0. Dec 31, 2016 11:40:38.698 [0x7fb254bff700] ERROR - [Transcoder] [mpeg2video @ 0x2d7f2a0] Invalid frame dimensions 0x0. Dec 31, 2016 11:40:38.699 [0x7fb2543fe700] ERROR - [Transcoder] [mpeg2video @ 0x2d7f2a0] Invalid frame dimensions 0x0.

ERROR - [Transcoder] [mpeg2_qsv @ 0x2dcf980] Only 8-bit YUV420 streams are supported. Dec 31, 2016 11:40:43.639 [0x7fb23e3fa700] ERROR - [Transcoder] Error while decoding stream #0:0: Function not implemented Dec 31, 2016 11:40:43.640 [0x7fb2543fe700] ERROR - [Transcoder] [mpeg2_qsv @ 0x2dcf980] Only 8-bit YUV420 streams are supported. Dec 31, 2016 11:40:43.641 [0x7fb23e3fa700] ERROR - [Transcoder] Error while decoding stream #0:0: Function not implemented

My media server log displays these errors until the playback times out.
Guess something changed with how plex handles the stream from tvheadend.

Issue 27 is still occuring in latest Pull

Hi,

I'm using the latest Plex Home Theater and Plex Media Server and having the same issue as in #27.

I've tried this in PHT on OSX and in PHT on Rasplex and the can't play media error occurs. Everything works fine on Android and in Chrome. Any idea how I can help debug this further? This is what shows up in the logs:

23:39:19 T:140735188366080  NOTICE: DVDPlayer: Opening: plexserver:///video/tvheadend-ng/PlayMedia?url=http%3A%2F%2Fadmin%3A<pass>%40tv-vm%3A9981%2Fstream%2Fchannel%2Fdac2c2de2b8e061cfc8a88f44c6a2fa3%3Fprofile%3Dpass
23:39:19 T:140735188366080 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:39:19 T:4537589760  NOTICE: Thread CDVDPlayer start, auto delete: false
23:39:19 T:4537589760  NOTICE: Creating InputStream
23:39:19 T:4537589760   ERROR: Open - failed to open source <plexserver://<40CHARACTERS>/video/tvheadend-ng/PlayMedia?url=http%3A%2F%2Fadmin%3A<pass>%40tv-vm%3A9981%2Fstream%2Fchannel%2Fdac2c2de2b8e061cfc8a88f44c6a2fa3%3Fprofile%3Dpass>
23:39:19 T:4537589760   ERROR: CDVDPlayer::OpenInputStream - error opening [plexserver://<40CHARACTERS>/video/tvheadend-ng/PlayMedia?url=http%3A%2F%2Fadmin%3A<pass>%40tv-vm%3A9981%2Fstream%2Fchannel%2Fdac2c2de2b8e061cfc8a88f44c6a2fa3%3Fprofile%3Dpass]
23:39:19 T:4537589760  NOTICE: CDVDPlayer::OnExit()
23:39:19 T:4537589760  NOTICE: CDVDPlayer::OnExit() deleting input stream
23:39:19 T:140735188366080   ERROR: Playlist Player: skipping unplayable item: 0, path [plexserver://<40CHARACTERS>/video/tvheadend-ng/:/function/createTVChannelObject?function_args=Y2VyZWFsMQo2CmRpY3QKZGljdApkaWN0Cmxpc3QKbGlzdApsaXN0CjUKczE3ClBsZXggSG9tZSBUaGVhdGVyczgKY3Byb2R1Y3RiMXM5CmNvbnRhaW5lcnMxNwpQbGV4IEhvbWUgVGhlYXRlcnM5CmNwbGF0Zm9ybXIxCnM4CmNoYW5pbmZvcjIKczcKY2hhbm5lbDgKczUKMDE6MDJzOAplcGdfc3RvcHMxOQpTYXR1cmRheSBOaWdodCBMaXZlczkKZXBnX3RpdGxlczUKMjM6MjlzOQplcGdfc3RhcnRiMHMxNwpzZXJ2aWNlX2VuY3J5cHRlZGk1NTgwMDAwCnMxMgplcGdfZHVyYXRpb25zMzYKSG9zdCBMYXJyeSBEYXZpZDsgVGhlIDE5NzUgcGVyZm9ybXMuczE1CmVwZ19kZXNjcmlwdGlvbnMwCnMxMQplcGdfc3VtbWFyeXMxCjBzMTIKc2VydmljZV90eXBlMTMKczMyCmRhYzJjMmRlMmI4ZTA2MWNmYzhhODhmNDRjNmEyZmEzczQKdXVpZHIzCnM0CnRhZ3N1MApzNwpib3VxdWV0aTAKczEyCmR2cl9wc3RfdGltZXI0CnM3CmVwZ2dyYWJiMXM3CmVuYWJsZWRzNAoxMC4xczYKbnVtYmVyczcKV0NBVS1UVnM0Cm5hbWVzMjkKaHR0cDovL3R2LXZtL3R2aWNvbnMvMTAuMS5naWZzMTUKaWNvbl9wdWJsaWNfdXJscjUKczgKc2VydmljZXNiMXM3CmVwZ2F1dG9pMApzMTIKZHZyX3ByZV90aW1lczI5Cmh0dHA6Ly90di12bS90dmljb25zLzEwLjEuZ2lmczQKaWNvbjMKczMyCjM3Y2Q4ZGMwYTJmYjRhYjIxYjZlYzhiYzdiNGJkNmYxczMyCjZmOTM1YzdhODE3ZmFmODQzMTAyNzBlYjM2Nzk5ZGU1czMyCjJhZDZjMmVjNWVhMTVlMmQ2NGUxMDU0ODhmMDVhOTkwMQpzMjgKeG1sdHZ8STE5NjEzLmxhYnMuemFwMml0LmNvbTIKczMyCjU3YmI2MWFlODM0OTZmYWYzNGZkNWU5NDZkOWI1Y2QwczMyCjBkYjRjYTY0NjhmY2ZjMDk3MjM2YzMzMWRiYzZlMzNlcjAK]
23:39:19 T:140735188366080  NOTICE: CDVDPlayer::CloseFile()
23:39:19 T:140735188366080 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:39:19 T:140735188366080  NOTICE: DVDPlayer: waiting for threads to exit
23:39:19 T:140735188366080  NOTICE: DVDPlayer: finished waiting

This channel is not responding.

When trying to generate the channel grid I receive "This channel is not responding." in the Plex window.
From the com.plexapp.plugins.tvheadend-ng.log I see:
2015-07-17 10:49:41,473 (805a14c00) : INFO (init:110) - JSON-Request failed: 'utf8' codec can't decode byte 0x95 in position 3: invalid start byte
2015-07-17 10:49:41,474 (805a14c00) : CRITICAL (sandbox:303) - Exception when calling function 'getChannels' (most recent call last):
File "/usr/local/plexdata/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 294, in call_named_function
result = f(_args, *_kwargs)
File "/usr/local/plexdata/Plex Media Server/Plug-ins/tvheadend-ng.bundle/Contents/Code/init.py", line 213, in getChannels
if debug == True: Log("Could not create channellist! Showing error.")
File "/usr/local/plexdata/Plex Media Server/Plug-ins/tvheadend-ng.bundle/Contents/Code/init.py", line 144, in getChannelInfo
for service in json_services['entries']:
File "/usr/local/plexdata/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
getitem = lambda x, y: x.getitem(y),
AttributeError: 'bool' object has no attribute 'getitem'

2015-07-17 10:49:41,478 (805a14c00) : DEBUG (runtime:918) - Response: [404] NoneType, 0 bytes

I'm using HTS Tvheadend 3.9.2827g477feabtrusty and Plex Version 0.9.12.4 on FreeBSD

Please let me know if you need more information.

Thanks

Stream quality

Is there any way to make the quality better ?
Seems like plex is transcoding too low.

Can't retrieve channel list

I am using tvheadend 4.1

{"sw_version": "4.1","api_version": 15,"name": "Tvheadend","capabilities": ["caclient","tvadapters","satip_client","satip_server","imagecache","timeshift","trace"]}

If I click on all channels or select a bouquet I get the error message "Request failed! Please check channel settings and tvheadend status."

The log contains following:

2015-11-28 15:29:01,409 (7ff4757fa700) :  INFO (__init__:104) - JSON-Request: getServiceGrid
2015-11-28 15:29:01,410 (7ff4757fa700) :  DEBUG (networking:166) - Requesting 'http://192.168.178.3:9981/api/mpegts/service/grid?start=0&limit=999999'
2015-11-28 15:29:01,411 (7ff4757fa700) :  DEBUG (networking:166) - Requesting 'http://192.168.178.3:9981/api/mpegts/service/grid?start=0&limit=999999'
2015-11-28 15:29:01,412 (7ff4757fa700) :  INFO (__init__:132) - JSON-Request failed: exceptions must be old-style classes or derived from BaseException, not str
2015-11-28 15:29:01,412 (7ff4757fa700) :  INFO (__init__:151) - Failed to fetch DVB services!
2015-11-28 15:29:01,412 (7ff4757fa700) :  INFO (__init__:242) - Could not create channellist! Showing error.
2015-11-28 15:29:01,417 (7ff4757fa700) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 437 bytes

Picons not shown in Plex - HTTP 401 for picons

Error:
I configured picons for the channels in tvheadend, The picons are shown in tvheadend, but not in Plex,

Reason:
The access for the path /imagecache is limited by tvheadend to authorized users. Since no authorization information is coded in the access path for picons, you get http 401 when no anonymous user exists for the IP of the Plex-Server.

Solution:
By configuration in tvheadend: Create an anonymous user (Username:* / Password:* / Network prefix 127.0.0.1/32 (when plex is running on the same server as tvheadend).

By tvheadend-ng (preferred): Pass HTTP basic authentication credentials in the URL for picons.

Passthrough profile for Apple TV

As discussed, a passthrough profile (remux, without transcoding) for Apple TV / PlexConnect would be really nice.

It works with the HDSurfer plugin, which uses VLC to remux the stream.

Can't retrieve channel list

Hello,
i also wrote on plex forum.
When i try to retrieve channel list from tvheadend i got an error on the screen to check my configuration and in the log file i see these lines:

2014-03-30 01:40:56,747 (7fcaf37fe700) : INFO (init:159) - JSON-Request: getEpgGrid
2014-03-30 01:40:56,757 (7fcaf2ffd700) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2014-03-30 01:40:56,758 (7fcaf2ffd700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 909 bytes
2014-03-30 01:40:56,760 (7fcaf37fe700) : INFO (init:177) - JSON-Request failed: HTTP/1.1 1 Unknown returncode

2014-03-30 01:40:56,760 (7fcaf37fe700) : INFO (init:311) - Could not create channellist! Showing error.
2014-03-30 01:40:56,763 (7fcaf37fe700) : DEBUG (runtime:106) - Sending packed state data (113 bytes)
2014-03-30 01:40:56,764 (7fcaf37fe700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 466 bytes
2014-03-30 01:40:56,857 (7fcaf2ffd700) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng

Tvheadend version 3.5.204~ge343bfd-dirty

Thank you for everything you can do

Issue pulling channel list

I'm currently unable to pull a channel list post update with Plex:
"Request failed! Please check channel settings and tvheadend status."

Here are the current versions I am using for Plex and tvheadend:
Plex: Version 0.9.16.2
tvheadend:
Version: 4.1.1692-1
Architecture: avoton
MD5: 8d3caf3370d338b551de00b846ba68b6
Changelog: Update to 4.1.1692

After cycling the Plex server, below is the log output from tvheadend-ng.

I tried rolling back to a different version of tvheadend and also the previous version of Plex, but am still seeing the same error.

Any suggestions would be greatly appreciated. It was a great plugin when it was working!

...
2016-03-19 15:46:58,819 (12b0) : DEBUG (socketinterface:160) - Starting socket server
2016-03-19 15:46:58,819 (12b0) : DEBUG (runtime:1117) - Created a thread named 'start'
2016-03-19 15:46:58,822 (12b0) : INFO (socketinterface:184) - Socket server started on port 60463
2016-03-19 15:46:58,822 (12b0) : INFO (pipeinterface:25) - Entering run loop
2016-03-19 15:46:58,822 (12b0) : DEBUG (runtime:717) - Handling request GET /:/prefixes
2016-03-19 15:46:58,822 (12b0) : DEBUG (runtime:814) - Found route matching /:/prefixes
2016-03-19 15:46:58,823 (12b0) : DEBUG (runtime:924) - Response: [200] MediaContainer, 470 bytes
2016-03-19 15:47:43,421 (19e8) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2016-03-19 15:47:43,426 (19e8) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2016-03-19 15:47:43,427 (19e8) : WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 7 column 2 (char 94)
2016-03-19 15:47:43,430 (19e8) : DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
2016-03-19 15:47:43,430 (19e8) : DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.plugins.tvheadend-ng
2016-03-19 15:47:43,433 (19e8) : INFO (logkit:16) - JSON-Request: getServerVersion
2016-03-19 15:47:43,440 (19e8) : DEBUG (networking:166) - Requesting 'http://192.168.1.53:9981/api/serverinfo'
2016-03-19 15:47:43,453 (19e8) : INFO (logkit:16) - JSON-Request successfull!
2016-03-19 15:47:43,453 (19e8) : INFO (logkit:16) - Configuration OK!
2016-03-19 15:47:43,453 (19e8) : WARNING (runtime:1065) - Generating a callback path for a function with no route: <function getChannels at 0x052AB730>
2016-03-19 15:47:43,453 (19e8) : DEBUG (base:117) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2016-03-19 15:47:43,454 (19e8) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2016-03-19 15:47:43,466 (19e8) : DEBUG (runtime:88) - Sending packed state data (113 bytes)
2016-03-19 15:47:43,466 (19e8) : DEBUG (runtime:924) - Response: [200] MediaContainer, 820 bytes
2016-03-19 15:47:44,273 (2134) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2016-03-19 15:47:44,275 (2134) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2016-03-19 15:47:44,276 (2134) : INFO (logkit:16) - JSON-Request: getServerVersion
2016-03-19 15:47:44,286 (2134) : DEBUG (networking:166) - Requesting 'http://192.168.1.53:9981/api/serverinfo'
2016-03-19 15:47:44,299 (2134) : INFO (logkit:16) - JSON-Request successfull!
2016-03-19 15:47:44,299 (2134) : INFO (logkit:16) - Configuration OK!
2016-03-19 15:47:44,299 (2134) : WARNING (runtime:1065) - Generating a callback path for a function with no route: <function getChannels at 0x052AB730>
2016-03-19 15:47:44,299 (2134) : DEBUG (base:117) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2016-03-19 15:47:44,301 (2134) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2016-03-19 15:47:44,309 (2134) : DEBUG (runtime:88) - Sending packed state data (113 bytes)
2016-03-19 15:47:44,309 (2134) : DEBUG (runtime:924) - Response: [200] MediaContainer, 820 bytes
2016-03-19 15:47:44,322 (1abc) : DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/function/getChannels?function_args=Y2VyZWFsMQoxCmRpY3QKMQpzMTIKQWxsIGNoYW5uZWxzczUKdGl0bGVyMAo_
2016-03-19 15:47:44,329 (1abc) : DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/function/getChannels
2016-03-19 15:47:44,331 (1abc) : DEBUG (runtime:125) - Calling function 'getChannels'
2016-03-19 15:47:44,331 (1abc) : INFO (logkit:16) - JSON-Request: getChannelGrid
2016-03-19 15:47:44,342 (1abc) : DEBUG (networking:166) - Requesting 'http://192.168.1.53:9981/api/channel/grid?start=0&limit=999999'
2016-03-19 15:47:44,361 (1abc) : INFO (logkit:16) - JSON-Request successfull!
2016-03-19 15:47:44,361 (1abc) : INFO (logkit:16) - JSON-Request: getEpgGrid
2016-03-19 15:47:44,369 (1abc) : DEBUG (networking:166) - Requesting 'http://192.168.1.53:9981/api/epg/events/grid?start=0&limit=2000'
2016-03-19 15:47:44,466 (1abc) : DEBUG (networking:161) - Fetching 'http://192.168.1.53:9981/api/epg/events/grid?start=0&limit=2000' from the HTTP cache
2016-03-19 15:47:44,470 (1abc) : INFO (logkit:16) - JSON-Request failed: JSON encoding error
2016-03-19 15:47:44,470 (1abc) : INFO (logkit:16) - JSON-Request: getServiceGrid
2016-03-19 15:47:44,479 (1abc) : DEBUG (networking:166) - Requesting 'http://192.168.1.53:9981/api/mpegts/service/grid?start=0&limit=999999'
2016-03-19 15:47:44,500 (1abc) : INFO (logkit:16) - JSON-Request successfull!
2016-03-19 15:47:44,500 (1abc) : INFO (logkit:16) - Could not create channellist! Showing error.
2016-03-19 15:47:44,503 (1abc) : DEBUG (runtime:88) - Sending packed state data (113 bytes)
2016-03-19 15:47:44,503 (1abc) : DEBUG (runtime:924) - Response: [200] MediaContainer, 437 bytes

Unknow error

Hi
I have
tvh version 3.4.28geb79aeetrusty
plex version 2.3.20.

I install the plugin in plex but when I try tu run it I have
Unknow error message.

What is the problem??

Thanks

Error while opening file

Using latest unstable version of tvh and latest pms I get the error-message 'Error while opening file', selecting a channel to watch.
Environment: Mac mini with latest OSX
Stream channel directly via VLC from tvh works.
Any idea where I could investigate?

Plugin seems not to be able to connect to tvheadends at all on my system

Hi,
thanks for this, I have big hopes ;) Unfortunately I can't get it to run...
Maybe something trivial, but I can't get around it. Have tried all variations of configuration data I could imagine, the plugin seems not to be able to contact tvheadends - it actually seems it cannot even communicate with the plex server (see log below).
This is on Ubuntu 14.04 with both plex-ms and tvheadends (3.9.1949~g38f73e1) on one machine. I am trying to start the plugin from a mac-client in the lan (browser interface using chrome). I always get "unknown error" before any contact to tvheadend is made. Here my log:

ri@lg-vaio:~$ cat /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/PMS\ Plugin\ Logs/com.plexapp.plugins.tvheadend-ng.log
2014-10-27 17:31:19,390 (7fbb8d702740) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-10-27 17:31:19,391 (7fbb8d702740) :  DEBUG (core:359) - Using the elevated policy
2014-10-27 17:31:19,391 (7fbb8d702740) :  DEBUG (core:448) - Starting runtime component.
2014-10-27 17:31:19,393 (7fbb8d702740) :  DEBUG (core:448) - Starting caching component.
2014-10-27 17:31:19,393 (7fbb8d702740) :  DEBUG (core:448) - Starting data component.
2014-10-27 17:31:19,393 (7fbb8d702740) :  DEBUG (core:448) - Starting networking component.
2014-10-27 17:31:19,394 (7fbb8d702740) :  DEBUG (networking:292) - No cookie jar found
2014-10-27 17:31:19,394 (7fbb8d702740) :  DEBUG (caching:108) - No info file found, trashing the cache folder
2014-10-27 17:31:19,396 (7fbb8d702740) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-10-27 17:31:19,397 (7fbb8d702740) :  DEBUG (core:448) - Starting localization component.
2014-10-27 17:31:19,398 (7fbb8d702740) :  INFO (localization:408) - Setting the default locale to en-us
2014-10-27 17:31:19,398 (7fbb8d702740) :  DEBUG (localization:426) - Loaded en strings
2014-10-27 17:31:19,399 (7fbb8d702740) :  DEBUG (core:448) - Starting messaging component.
2014-10-27 17:31:19,400 (7fbb8d702740) :  DEBUG (core:448) - Starting debugging component.
2014-10-27 17:31:19,400 (7fbb8d702740) :  DEBUG (core:448) - Starting services component.
2014-10-27 17:31:19,401 (7fbb8d702740) :  DEBUG (core:448) - Starting myplex component.
2014-10-27 17:31:19,401 (7fbb8d702740) :  DEBUG (core:448) - Starting notifications component.
2014-10-27 17:31:19,402 (7fbb757fa700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.tvheadend-ng'
2014-10-27 17:31:19,549 (7fbb8d702740) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.tvheadend-ng in namespace 'metadata'
2014-10-27 17:31:19,554 (7fbb8d702740) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-10-27 17:31:19,689 (7fbb757fa700) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-10-27 17:31:19,690 (7fbb8d702740) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-10-27 17:31:19,693 (7fbb8d702740) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-10-27 17:31:19,694 (7fbb757fa700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-10-27 17:31:19,694 (7fbb57fff700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-10-27 17:31:19,695 (7fbb8d702740) :  DEBUG (core:150) - Finished starting framework core
2014-10-27 17:31:19,696 (7fbb8d702740) :  DEBUG (core:558) - Loading plug-in code
2014-10-27 17:31:19,869 (7fbb8d702740) :  DEBUG (core:564) - Finished loading plug-in code
2014-10-27 17:31:19,873 (7fbb57fff700) :  DEBUG (core:536) - Machine identifier is 7b424ec5d93f56e7c14f40505dc9d299dbe76370
2014-10-27 17:31:19,873 (7fbb57fff700) :  DEBUG (core:537) - Server version is 0.9.9.14.531-7eef8c6
2014-10-27 17:31:19,971 (7fbb757fa700) :  DEBUG (services:362) - Loaded services
2014-10-27 17:31:19,972 (7fbb8d702740) :  DEBUG (runtime:640) - Adding a prefix handler for 'TV-Headend' ('/video/tvheadend-ng')
2014-10-27 17:31:19,977 (7fbb74ff9700) :  DEBUG (services:438) - No shared code to load
2014-10-27 17:31:19,979 (7fbb8d702740) :  INFO (core:609) - Started plug-in
2014-10-27 17:31:19,979 (7fbb8d702740) :  DEBUG (socketinterface:160) - Starting socket server
2014-10-27 17:31:19,980 (7fbb8d702740) :  DEBUG (runtime:1111) - Created a thread named 'start'
2014-10-27 17:31:19,980 (7fbb8d702740) :  INFO (socketinterface:184) - Socket server started on port 46348
2014-10-27 17:31:19,980 (7fbb8d702740) :  INFO (pipeinterface:25) - Entering run loop
2014-10-27 17:31:19,980 (7fbb8d702740) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2014-10-27 17:31:19,982 (7fbb8d702740) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2014-10-27 17:31:19,983 (7fbb8d702740) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 470 bytes
2014-10-27 17:34:08,154 (7fbb757fa700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/icon-default.png?t=1414431075
2014-10-27 17:34:08,192 (7fbb757fa700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/icon-default.png
2014-10-27 17:34:08,197 (7fbb757fa700) :  DEBUG (runtime:106) - Sending packed state data (113 bytes)
2014-10-27 17:34:08,197 (7fbb757fa700) :  DEBUG (runtime:918) - Response: [200] DataObject, 93719 bytes
2014-10-27 17:34:12,595 (7fbb757fa700) :  DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/prefs
2014-10-27 17:34:12,598 (7fbb757fa700) :  DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/prefs
2014-10-27 17:34:12,599 (7fbb757fa700) :  WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 7 column 2 (char 94)
2014-10-27 17:34:12,604 (7fbb757fa700) :  DEBUG (preferences:256) - Loaded preferences from DefaultPrefs.json
2014-10-27 17:34:12,604 (7fbb757fa700) :  INFO (preferences:161) - No user preferences file exists
2014-10-27 17:34:12,605 (7fbb757fa700) :  DEBUG (preferences:198) - Saved the user preferences
2014-10-27 17:34:12,607 (7fbb757fa700) :  DEBUG (runtime:106) - Sending packed state data (113 bytes)
2014-10-27 17:34:12,608 (7fbb757fa700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 997 bytes
2014-10-27 17:34:27,774 (7fbb757fa700) :  DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng/:/prefs/set?tvheadend_user=ri&tvheadend_pass=lg&tvheadend_host=http%3A%2F%2F10.0.1.3
2014-10-27 17:34:27,778 (7fbb757fa700) :  DEBUG (runtime:814) - Found route matching /video/tvheadend-ng/:/prefs/set
2014-10-27 17:34:27,779 (7fbb757fa700) :  DEBUG (preferences:198) - Saved the user preferences
2014-10-27 17:34:27,780 (7fbb757fa700) :  CRITICAL (sandbox:298) - Function named 'ValidatePrefs' couldn't be found in the current environment
2014-10-27 17:34:27,781 (7fbb757fa700) :  DEBUG (runtime:106) - Sending packed state data (113 bytes)
2014-10-27 17:34:27,782 (7fbb757fa700) :  DEBUG (runtime:918) - Response: [200] str, 0 bytes
2014-10-27 17:34:30,722 (7fbb757fa700) :  DEBUG (runtime:717) - Handling request GET /video/tvheadend-ng
2014-10-27 17:34:30,726 (7fbb757fa700) :  DEBUG (runtime:814) - Found route matching /video/tvheadend-ng
2014-10-27 17:34:30,728 (7fbb757fa700) :  INFO (__init__:86) - JSON-Request: getServerVersion
2014-10-27 17:34:45,751 (7fbb757fa700) :  INFO (__init__:106) - JSON-Request failed: <urlopen error [Errno -2] Name or service not known>
2014-10-27 17:34:45,752 (7fbb757fa700) :  INFO (__init__:47) - Configuration error! Displaying error message: Unknown error!
2014-10-27 17:34:45,753 (7fbb757fa700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.tvheadend-ng is broken
2014-10-27 17:34:45,754 (7fbb757fa700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzIKY29tLnBsZXhhcHAucGx1Z2lucy50dmhlYWRlbmQtbmdzMTAKaWRlbnRpZmllcnIwCg__'
2014-10-27 17:34:45,767 (7fbb757fa700) :  DEBUG (runtime:106) - Sending packed state data (113 bytes)
2014-10-27 17:34:45,768 (7fbb757fa700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 627 bytes
2014-10-27 17:34:46,145 (7fbb757fa700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/art-default.jpg?t=1414431075
2014-10-27 17:34:46,148 (7fbb757fa700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.tvheadend-ng/resources/art-default.jpg
2014-10-27 17:34:46,150 (7fbb757fa700) :  DEBUG (runtime:106) - Sending packed state data (113 bytes)
2014-10-27 17:34:46,151 (7fbb757fa700) :  DEBUG (runtime:918) - Response: [200] DataObject, 401713 bytes

Not working with plex server 1.2.2.2857-d34b464

I recently updated Plex server to version 1.2.2.2857-d34b464 and this plugin no longer works for me, all channel browsing seems to work find but no streams seem to work. It seems to me that the Plex server is not even making the connection to the tvheadend server as nothing shows in the connections tab, not even for a second.

Enigma2 (vu+, Dreambox) Tuner?

Hallo, schönes Plugin,
kann man das umbauen oder erweitern das auch Enigma2 Kanallisten eingebunden werden können zum streamen?

Sehr vielen Dank vorab.

Configuration error!

Im getting configuration error! Please check the channel settings.

It's installed on Synology .
In TVheadend i have only configured IPTV channels

Can you help me please?

post update-------------------------------------------------------------------------------------
With "Use new tag api" disabled I can open plugin, but I can't see channels

show me "Request Failed!, check channel settings and TVHeadend status"

trying disable "Force remuxed straming" but same error

Thanks!

PMS 1.0.0.2261

Hey,
Streaming does not work on the new version 1.0.0.2261.

New API version

TV-Headend offers a new API version. The actual release does not support this version. Until I've checked the dependencies you habe to wait to update to the latest tvh.

Andtorid/IOS

Plugin works while watching from PC but not working when using IOS 9.3 or Android.
Is there any solution or option to use external Player such as VLC?

Configuration error! Please check the channel settings.

This message appear, when loading the list of channel tags

Configuration error! Please check the channel settings.

I think may be since the URL change for tags, in recent master versions of tvheadend.
The 'TVH Client' on iOS platform is also affected because of that same problem.

Transcoded video is laggy and sound out of sync

I'm having a issue where the video stream through tvheadend-ng.bundle is unwatchable. The video lags freezes and stutters while the audio plays fine. The audio is not in sync with the video though.

My Setup is:

Plex Media Server (latest) running on Ubuntu 14.04 LTS in ESXI.
TVHeadEnd latest development build running on Ubuntu 14.04 LTS on dedicated mini itx intel i5 cpu.

Plex is working sound and can quite happy handle multiple streams at once to shared friends and family.
TVHeadEnd can also stream multiple HD satellite streams to clients on the network.

So I'm at a loss to see what is causing the issue. I would guess the issue is at the tvheadend transcoding end but I'm not sure how to prove this is the issue or figure out how to solve the issue.

Has anyone got any ideas?

Can Not Sign In

Hi,

After inputting the relevant login details (usr,pass,host,port) TVH-NG fails to login, it displays an "unknown error" message briefly.

TvHeadend latest version from Git running on Lubuntu 14.04
Plex Server latest running on same machine
TVH-NG sourced form unofficial appstore for plex

TvHeadend can be accessed using the credentials via web browser and an android app, with no problems.

Cheers for your efforts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.