(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