2014-07-25, 20:56
(2014-07-25, 08:36)taxigps Wrote:(2014-07-25, 07:53)Huuh Wrote:try to change line 744 as:(2014-07-24, 16:45)taxigps Wrote: fixed live channels in PPTV视频. update to 1.2.5. thanks.
thanks a lot!
edit: I tried the update. I seem to be getting this error. whenever I try streaming a channel.
01:58:06 323.347534 T:2717766736 NOTICE: http://web-play.pptv.com/web-m3u8-300166...type=ppbox
01:58:06 323.368561 T:2717766736 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode characters in position 58-61: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.pptv/default.py", line 821, in <module>
playVideo(name, url, thumb)
File "/storage/.xbmc/addons/plugin.video.pptv/default.py", line 745, in playVideo
with open(m3u, "w") as f:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 58-61: ordinal not in range(128)
-->End of Python script error report<--
edit 2: that error appears when I use the raspberry pi. It doesn't appear when I use my laptop. Any clues what could be going on?
m3u = os.path.join( __temp__, u"%s%d.m3u" % (name.decode("utf-8"),i))
when I take out my edits, and put that line instead in, I get this error.
Code:
14:55:23 40440.652344 T:2719777872 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.pptv/default.py", line 821, in <module>
playVideo(name, url, thumb)
File "/storage/.xbmc/addons/plugin.video.pptv/default.py", line 737, in playVideo
shutil.rmtree(__temp__)
File "/home/neil/projects/OpenELEC.tv/build.OpenELEC_Helix-RPi.arm-devel/Python-2.7.3/.install_pkg/usr/lib/python2.7/shutil.py", line 239, in rmtree
File "/home/neil/projects/OpenELEC.tv/build.OpenELEC_Helix-RPi.arm-devel/Python-2.7.3/.install_pkg/usr/lib/python2.7/posixpath.py", line 71, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128)
-->End of Python script error report<--