v19 HDHomerun Simple
#28
(2021-02-06, 03:10)cookieisland Wrote:
(2021-02-05, 02:27)Lunatixz Wrote: http://10.8.8.91:5004/auto/v8.2?transcode=None
Thanks for the quick update. Unfortunately it died again. This time it tried to use the url http://10.8.8.91:5004/auto/v8.2?transcode=default and 'default' is no good. 

I was able to fix it. I had to change the following line in hdhomerun.py (line 526):
    if self.transcode == 'none': tranOPT = (tuner.getTranscodeOption() or 'none')
to this:
    if self.transcode == 'default': tranOPT = (tuner.getTranscodeOption() or 'none')

As I was diagnosing things I found that there is a bug in pyHDHR.py.  The function getTranscodeOption was failing a not returning the transcode option set in my HDTC-2US.  It failed raising an exception due to the function "Regex" not being defined. No error was detected because it was caught by the exception handler.  I changed the following lines of code starting at line 586 (the commented out lines were the original lines)

                #cookieisland - start changes
                #regx = Regex('transcodeChanged\(\)">((.|\n)+?)</select>').search(response.read())
                regx = re.search(rb'transcodeChanged\(\)">((.|\n)+?)</select>',response.read())
                selecttags = regx.group(1)

                #regx = Regex('.+"(.*)".+selected=').search(selecttags)
                regx = re.search(rb'.+"(.*)".+selected=',selecttags)
                #self.TranscodeOption = regx.group(1)
                self.TranscodeOption = regx.group(1).decode('utf-8')
                #cookieisland - end changes

Thanks, I no longer own a transcode model HDHR... so my development is dependent on HDHR's API docs.
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply


Messages In This Thread
HDHomerun Simple - by Lunatixz - 2018-01-15, 00:32
RE: HDHomerun Simple - by Lunatixz - 2018-03-23, 23:57
RE: HDHomerun Simple - by dgktkr - 2018-04-24, 20:37
RE: HDHomerun Simple - by Lunatixz - 2018-04-25, 14:58
RE: HDHomerun Simple - by dgktkr - 2018-04-25, 17:30
RE: HDHomerun Simple - by mesostinky - 2018-04-24, 22:42
RE: HDHomerun Simple - by Lunatixz - 2018-04-25, 15:05
RE: HDHomerun Simple - by dgktkr - 2018-04-27, 20:46
RE: HDHomerun Simple - by Lunatixz - 2018-04-27, 21:07
RE: HDHomerun Simple - by clarkss12 - 2018-05-07, 01:51
RE: HDHomerun Simple - by gwilly7 - 2018-05-09, 00:00
RE: HDHomerun Simple - by gwilly7 - 2018-05-11, 05:46
RE: HDHomerun Simple - by tekno - 2018-06-18, 00:02
RE: HDHomerun Simple - by Lunatixz - 2018-06-18, 01:16
RE: HDHomerun Simple - by tekno - 2018-06-18, 05:59
RE: HDHomerun Simple - by davewilk - 2018-10-03, 18:27
RE: HDHomerun Simple - by Lunatixz - 2018-10-04, 21:45
RE: HDHomerun Simple - by ileenback - 2018-12-16, 05:01
RE: HDHomerun Simple - by ileenback - 2018-12-17, 20:50
RE: HDHomerun Simple - by Rolando1948 - 2019-09-05, 06:17
RE: HDHomerun Simple - by Rolando1948 - 2019-09-05, 06:24
RE: HDHomerun Simple - by Yubby - 2019-11-17, 02:11
RE: HDHomerun Simple - by Lunatixz - 2021-02-04, 04:17
RE: HDHomerun Simple - by cookieisland - 2021-02-05, 00:07
RE: HDHomerun Simple - by Lunatixz - 2021-02-05, 02:27
RE: HDHomerun Simple - by gwilly7 - 2021-02-04, 04:48
RE: HDHomerun Simple - by cookieisland - 2021-02-06, 03:10
RE: HDHomerun Simple - by Lunatixz - 2021-02-06, 05:56
RE: HDHomerun Simple - by cookieisland - 2021-02-06, 06:39
RE: HDHomerun Simple - by cookieisland - 2021-02-07, 02:10
RE: HDHomerun Simple - by PeteB - 2022-02-15, 08:36
RE: HDHomerun Simple - by Lunatixz - 2022-02-15, 12:41
Logout Mark Read Team Forum Stats Members Help
HDHomerun Simple1