• 1
  • 31
  • 32
  • 33(current)
  • 34
  • 35
  • 42
[RELEASE] Project xbmc-addons-chinese (Chinese addons for Kodi)
update 优酷视频(YouKu) to 2.2.0 - fixed: can't play video because site change
Reply
(2014-06-22, 06:43)taxigps Wrote: update 优酷视频(YouKu) to 2.2.0 - fixed: can't play video because site change

How can I update it? Thank you
Reply
(2014-06-22, 07:33)tigertam Wrote:
(2014-06-22, 06:43)taxigps Wrote: update 优酷视频(YouKu) to 2.2.0 - fixed: can't play video because site change

How can I update it? Thank you

will auto upgrade from xbmc-addon-chinese
Reply
(2014-06-22, 08:44)taxigps Wrote:
(2014-06-22, 07:33)tigertam Wrote:
(2014-06-22, 06:43)taxigps Wrote: update 优酷视频(YouKu) to 2.2.0 - fixed: can't play video because site change

How can I update it? Thank you

will auto upgrade from xbmc-addon-chinese

Thank you very much, But look like it has buffering problem.
Reply
(2014-06-22, 22:56)tigertam Wrote:
(2014-06-22, 08:44)taxigps Wrote:
(2014-06-22, 07:33)tigertam Wrote: How can I update it? Thank you

will auto upgrade from xbmc-addon-chinese

Thank you very much, But look like it has buffering problem.

Ya, I experienced serious buffering problem every couple of seconds.
Reply
New install file: repository.xbmc-addons-chinese-1.0.2.zip(New site)

Changes:
1. Move from code.google.com to github.com for access better in China.
2. Change to use compressed zip file for download and install addon from repo faster.
Reply
(2014-06-23, 04:11)taxigps Wrote: New install file: repository.xbmc-addons-chinese-1.0.2.zip(New site)

Changes:
1. Move from code.google.com to github.com for access better in China.
2. Change to use compressed zip file for download and install addon from repo faster.

Thank you
Reply
Hi,

I need some help. I tried installing all add-on but keep getting an error every time i try opening a video. For example, with PPTV it says can't play video, or with PPS i just goes to my desktop and then a crash message comes up saying PPSxbmc (or something like that) failed to open. With CNTV, it just goes to a black screen saying loading but nothing happens.

None of the add-on works for me!! Is there any other steps I need to do? Do I need to install another program?? Please help! Sad
Reply
So I checked the http address that the pptv app tries to connect to.

If e.g. I try to connect to the Beijing tv station, it uses this address.
"http://web-play.pptv.com/web-m3u8-300166.m3u8?type=m3u8.web.pad"

If I open up that link using a web browser, it says
Code:
"ERROR:live dt failed:http://live2.jump.idc.pplive.cn:8080/live2/d005a79e2c474848a7b316f6f87cecee?playtag=true&key=true&kk=&pre=ikan&type=m3u8.web.pad&chid=300166&&playtag=true"

if I try to ping live2.jump.idc.pplive.cn, it doesn't seem to exist.

If I change the address to "http://web-play.pptv.com/web-m3u8-300166.m3u8?type=ppbox", a m3u8 file is generated.
e.g.
Code:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
http://117.135.161.35:80/live/5/30/d005a79e2c474848a7b316f6f87cecee.m3u8?pre=ikan&type=ppbox&chid=300166&k=
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
http://112.117.210.22:80/live/5/30/d005a79e2c474848a7b316f6f87cecee.m3u8?pre=ikan&type=ppbox&chid=300166&k=

The problem is "type=ppbox" is wrong, and it should be "type=m3u8.web.pad". Once I change the type, I can use the generated .m3u8 file under xbmc.

I don't know enough exactly what's going on in the default.py file to make some quick edits, but can someone look into it, and simply query instead using type=ppbox, and then replace type=ppbox with type=m3u8.web.pad in the generated m3u8 file? Seems like a simple fix for someone who knows what they are doing.

Thanks.
Reply
(2014-07-21, 10:39)Huuh Wrote: So I checked the http address that the pptv app tries to connect to.

If e.g. I try to connect to the Beijing tv station, it uses this address.
"http://web-play.pptv.com/web-m3u8-300166.m3u8?type=m3u8.web.pad"

If I open up that link using a web browser, it says
Code:
"ERROR:live dt failed:http://live2.jump.idc.pplive.cn:8080/live2/d005a79e2c474848a7b316f6f87cecee?playtag=true&key=true&kk=&pre=ikan&type=m3u8.web.pad&chid=300166&&playtag=true"

if I try to ping live2.jump.idc.pplive.cn, it doesn't seem to exist.

If I change the address to "http://web-play.pptv.com/web-m3u8-300166.m3u8?type=ppbox", a m3u8 file is generated.
e.g.
Code:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
http://117.135.161.35:80/live/5/30/d005a79e2c474848a7b316f6f87cecee.m3u8?pre=ikan&type=ppbox&chid=300166&k=
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
http://112.117.210.22:80/live/5/30/d005a79e2c474848a7b316f6f87cecee.m3u8?pre=ikan&type=ppbox&chid=300166&k=

The problem is "type=ppbox" is wrong, and it should be "type=m3u8.web.pad". Once I change the type, I can use the generated .m3u8 file under xbmc.

I don't know enough exactly what's going on in the default.py file to make some quick edits, but can someone look into it, and simply query instead using type=ppbox, and then replace type=ppbox with type=m3u8.web.pad in the generated m3u8 file? Seems like a simple fix for someone who knows what they are doing.

Thanks.

have test, the method only works for live channels.
Reply
(2014-07-23, 08:55)taxigps Wrote: have test, the method only works for live channels.

You're right, not sure how watching the other videos work.

Do you think you can get in contact with the 5vido author? Perhaps add live channel servers to their list using this method? Often times in the US, PPTV servers work better than the listed sohu live channel servers. Also there's more PPTV live channels than Sohu live channels.

Thanks.
Reply
(2014-07-24, 09:32)Huuh Wrote:
(2014-07-23, 08:55)taxigps Wrote: have test, the method only works for live channels.

You're right, not sure how watching the other videos work.

Do you think you can get in contact with the 5vido author? Perhaps add live channel servers to their list using this method? Often times in the US, PPTV servers work better than the listed sohu live channel servers. Also there's more PPTV live channels than Sohu live channels.

Thanks.

fixed live channels in PPTV视频. update to 1.2.5. thanks.
Reply
(2014-07-24, 16:45)taxigps Wrote:
(2014-07-24, 09:32)Huuh Wrote:
(2014-07-23, 08:55)taxigps Wrote: have test, the method only works for live channels.

You're right, not sure how watching the other videos work.

Do you think you can get in contact with the 5vido author? Perhaps add live channel servers to their list using this method? Often times in the US, PPTV servers work better than the listed sohu live channel servers. Also there's more PPTV live channels than Sohu live channels.

Thanks.

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?

edit 3: I haven't programmed anything for more than 10 years, so my coding skills are bad. I change the code so it says,
Code:
def playVideo(name, url, thumb):
        ppurls = []

        # if live page without video link, try to get video link from search result
        if re.match('^http://live\.pptv\.com/list/tv_program/.*$', url):
                url = GetPPTVSearchList(PPTV_SEARCH_URL + urllib.quote_plus(name), name)

        if len(url) > 0:
                quality = int(__addon__.getSetting('movie_quality'))
                ppurls = GetPPTVVideoURL(url, quality)

        if len(ppurls) > 0:
                playlist = xbmc.PlayList(1)
                playlist.clear()
                if os.path.isdir(__temp__):
                        shutil.rmtree(__temp__.encode("utf-8"))   [b]*** change code here ***[/b]
                xbmc.sleep(100)
                os.mkdir(__temp__)
                for i in range(0, len(ppurls)):
                        data = GetHttpData(ppurls[i])
                        print ppurls[i]
                        data = data.replace('type=ppbox', 'type=m3u8.web.pad')
                        m3u = os.path.join( __temp__, "%s%d.m3u" % (name.decode("utf-8"),i))
                        with open(m3u.encode("utf-8"), "w") as f:    [b]*** changed code here ***[/b]
                                f.write(data)
                        f.close()
                        title = name + ' ' + PPTV_TTH + ' ' + str(i + 1) + '/' + str(len(ppurls)) + ' ' + PPTV_FIELD
                        liz = xbmcgui.ListItem(title, thumbnailImage = thumb)
                        liz.setInfo(type = "Video", infoLabels = { "Title" : title })
                        playlist.add(m3u, liz)
                xbmc.Player().play(playlist)
        else:
                xbmcgui.Dialog().ok(__addonname__, PPTV_MSG_GET_URL_FAILED)

it seems to work now with the raspberry pi. Does this seem correct to you?
Reply
(2014-07-25, 07:53)Huuh Wrote:
(2014-07-24, 16:45)taxigps Wrote:
(2014-07-24, 09:32)Huuh Wrote: You're right, not sure how watching the other videos work.

Do you think you can get in contact with the 5vido author? Perhaps add live channel servers to their list using this method? Often times in the US, PPTV servers work better than the listed sohu live channel servers. Also there's more PPTV live channels than Sohu live channels.

Thanks.

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?
try to change line 744 as:
m3u = os.path.join( __temp__, u"%s%d.m3u" % (name.decode("utf-8"),i))
Reply
(2014-07-25, 08:36)taxigps Wrote:
(2014-07-25, 07:53)Huuh Wrote:
(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?
try to change line 744 as:
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<--
Reply
  • 1
  • 31
  • 32
  • 33(current)
  • 34
  • 35
  • 42

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Project xbmc-addons-chinese (Chinese addons for Kodi)7