realriot / tvheadend-ng.bundle

TV-Headend Next Generation Plex Plugin
BSD 3-Clause "New" or "Revised" License
85 stars 47 forks source link

Working over Browser, but not via Android-App #54

Open alti4 opened 7 years ago

alti4 commented 7 years ago

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?

segator commented 7 years ago

same problem, I found out that channels with especial characters like dot . in web broswer works fine but in android don't start. Something wrong in the string encoding?

segator commented 7 years ago

I Find out the problem. Is the length of the service url created by

args['key'] = Callback(createTVChannelObject, channel = channel, chaninfo = chaninfo, cproduct = cproduct, cplatform = cplatform, container = True)

the problem is the epg_description some time's is very long and this cause to fail on playback. I shorted the description to max of 2000 chars and works fine but maybe could be fixed, calculating the epg_data inside the createTVchannel instead of pass all the data thru chaninfo parameter. It also will acelerate channel list load because it couldn't be necesary to load the whole epg data.