基于web的ppstream+sopcast+pplive节目单(firefox 点播)(可搜索) (09/27更新)

Totem,mplayer,sopcast,realplayer,bmp
头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/07更新)

#16

帖子 youqika » 2009-09-09 8:58

看来看去还是这个好用 :em11
UCHIHA
运气是为白痴准备的
头像
momova
帖子: 3381
注册时间: 2007-07-11 21:43
系统: archlinux
来自: 东江边

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/07更新)

#17

帖子 momova » 2009-09-09 9:31

:em11 好久没试过了。
我来了,我看见了,我征服了!
求勾搭,不管饭。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/07更新)

#18

帖子 eexpress » 2009-09-09 10:42

http://drop.io/allinone/asset/all-in-one-tgz
试了一下。

改了一个这个。这样方便别人修改喜欢的term。而且我的xterm已经是alias过了的,所以指向了原始文件。

代码: 全选

TERM='/usr/bin/xterm'
$TERM -e 。。。。。
export PPS_MPLAYER_PATH=$HOME"/pps-mplayer"
应该改成用$0取路径。自动些。

代码: 全选

export PPS_MPLAYER_PATH=`dirname $0`
$0:脚本名字。此变量包含地址,可以使用basename $0获得脚本名称。
等15秒太长了吧。
● 鸣学
newbiee
帖子: 69
注册时间: 2009-08-27 21:59

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/07更新)

#19

帖子 newbiee » 2009-09-09 10:47

eexpress 写了:http://drop.io/allinone/asset/all-in-one-tgz
试了一下。

改了一个这个。这样方便别人修改喜欢的term。而且我的xterm已经是alias过了的,所以指向了原始文件。

代码: 全选

TERM='/usr/bin/xterm'
$TERM -e 。。。。。
export PPS_MPLAYER_PATH=$HOME"/pps-mplayer"
应该改成用$0取路径。自动些。

代码: 全选

export PPS_MPLAYER_PATH=`dirname $0`
$0:脚本名字。此变量包含地址,可以使用basename $0获得脚本名称。
等15秒太长了吧。
不错不错. 我喜欢那个自动获得目录的方案. 待我更新我的原帖.多谢. 15秒已经比原sopcast script 作者(chick 很 femme 的名字)默认的20秒进步了.呵呵
头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#20

帖子 youqika » 2009-09-10 9:10

别沉!! :em38 :em42
UCHIHA
运气是为白痴准备的
LMT
帖子: 1
注册时间: 2009-09-11 3:56

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#21

帖子 LMT » 2009-09-11 7:25

非常感谢楼主!!!
loopwater
帖子: 92
注册时间: 2008-10-19 22:13

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#22

帖子 loopwater » 2009-09-11 22:44

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 14: ordinal not in range(128)


代码头上指定GBK或者UTF8都有问题俄

Python 2.6.2 (release26-maint)
ubuntu9.04

给点修改提示
newbiee
帖子: 69
注册时间: 2009-08-27 21:59

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#23

帖子 newbiee » 2009-09-11 23:52

loopwater 写了:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 14: ordinal not in range(128)


代码头上指定GBK或者UTF8都有问题俄

Python 2.6.2 (release26-maint)
ubuntu9.04

给点修改提示
你是说哪个文件?
loopwater
帖子: 92
注册时间: 2008-10-19 22:13

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#24

帖子 loopwater » 2009-09-12 3:35

wizzard@wizzard-laptop:~/桌面/pps-mplayer$ sudo python install.py
Traceback (most recent call last):
File "install.py", line 4, in <module>
ext_pro = os.environ['PWD']+'/mypps'
File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'PWD'
wizzard@wizzard-laptop:~/桌面/pps-mplayer$ python install.py
external program position?
(/home/wizzard/桌面/pps-mplayer/mypps)correct me if I'm wrong
(enter to use the default):
Your firefox version?(firefox,firefox-3.5,firefox-3.6)
(enter to use the default firefox):
Your profile?(Profile0)
(enter to use the default profile):
summary:
program: /home/wizzard/桌面/pps-mplayer/mypps
firefox: firefox
profile: Profile0
protocols:['pps', 'tvod', 'sop', 'synacast']
now association begins:
haha, adding:pps
haha, adding:tvod
haha, adding:sop
haha, adding:synacast
haha, adding:pps Description
haha, adding:tvod Description
haha, adding:sop Description
haha, adding:synacast Description
haha, adding:pps Description external
haha, adding:tvod Description external
haha, adding:sop Description external
haha, adding:synacast Description external
haha, adding:pps Description handler
haha, adding:tvod Description handler
haha, adding:sop Description handler
haha, adding:synacast Description handler
Traceback (most recent call last):
File "install.py", line 46, in <module>
auto.autoAssociate(['pps','tvod','sop','synacast'],ext_pro,profile,fox)
File "/home/wizzard/桌面/pps-mplayer/auto_firefox_association.py", line 137, in autoAssociate
write_to_file(doc, name=mime_file)
File "/home/wizzard/桌面/pps-mplayer/auto_firefox_association.py", line 22, in write_to_file
file_object.write(doc.toxml())
File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/minidom.py", line 47, in toxml
return self.toprettyxml("", "", encoding)
File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/minidom.py", line 62, in toprettyxml
return writer.getvalue()
File "/usr/lib/python2.6/StringIO.py", line 270, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 14: ordinal not in range(128)
newbiee
帖子: 69
注册时间: 2009-08-27 21:59

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#25

帖子 newbiee » 2009-09-12 6:46

loopwater 写了:wizzard@wizzard-laptop:~/桌面/pps-mplayer$ sudo python install.py
Traceback (most recent call last):
File "install.py", line 4, in <module>
ext_pro = os.environ['PWD']+'/mypps'
File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'PWD'
wizzard@wizzard-laptop:~/桌面/pps-mplayer$ python install.py
external program position?
(/home/wizzard/桌面/pps-mplayer/mypps)correct me if I'm wrong
(enter to use the default):
Your firefox version?(firefox,firefox-3.5,firefox-3.6)
(enter to use the default firefox):
Your profile?(Profile0)
(enter to use the default profile):
summary:
program: /home/wizzard/桌面/pps-mplayer/mypps
firefox: firefox
profile: Profile0
protocols:['pps', 'tvod', 'sop', 'synacast']
now association begins:
haha, adding:pps
haha, adding:tvod
haha, adding:sop
haha, adding:synacast
haha, adding:pps Description
haha, adding:tvod Description
haha, adding:sop Description
haha, adding:synacast Description
haha, adding:pps Description external
haha, adding:tvod Description external
haha, adding:sop Description external
haha, adding:synacast Description external
haha, adding:pps Description handler
haha, adding:tvod Description handler
haha, adding:sop Description handler
haha, adding:synacast Description handler
Traceback (most recent call last):
File "install.py", line 46, in <module>
auto.autoAssociate(['pps','tvod','sop','synacast'],ext_pro,profile,fox)
File "/home/wizzard/桌面/pps-mplayer/auto_firefox_association.py", line 137, in autoAssociate
write_to_file(doc, name=mime_file)
File "/home/wizzard/桌面/pps-mplayer/auto_firefox_association.py", line 22, in write_to_file
file_object.write(doc.toxml())
File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/minidom.py", line 47, in toxml
return self.toprettyxml("", "", encoding)
File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/minidom.py", line 62, in toprettyxml
return writer.getvalue()
File "/usr/lib/python2.6/StringIO.py", line 270, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 14: ordinal not in range(128)
你的目录里面有中文(桌面),你试试把他copy到一个纯英文的目录中。
loopwater
帖子: 92
注册时间: 2008-10-19 22:13

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#26

帖子 loopwater » 2009-09-12 10:28

root@wizzard-laptop:~/pps-mplayer# python install.py external program position?
(/home/wizzard/pps-mplayer/mypps)correct me if I'm wrong
(enter to use the default):
Your firefox version?(firefox,firefox-3.5,firefox-3.6)
(enter to use the default firefox):
Your profile?(Profile0)
(enter to use the default profile):
summary:
program: /home/wizzard/pps-mplayer/mypps
firefox: firefox
profile: Profile0
protocols:['pps', 'tvod', 'sop', 'synacast']
now association begins:
haha, adding:pps
haha, adding:tvod
haha, adding:sop
haha, adding:synacast
haha, adding:pps Description
haha, adding:tvod Description
haha, adding:sop Description
haha, adding:synacast Description
haha, adding:pps Description external
haha, adding:tvod Description external
haha, adding:sop Description external
haha, adding:synacast Description external
haha, adding:pps Description handler
haha, adding:tvod Description handler
haha, adding:sop Description handler
haha, adding:synacast Description handler
Traceback (most recent call last):
File "install.py", line 46, in <module>
auto.autoAssociate(['pps','tvod','sop','synacast'],ext_pro,profile,fox)
File "/home/wizzard/pps-mplayer/auto_firefox_association.py", line 137, in autoAssociate
write_to_file(doc, name=mime_file)
File "/home/wizzard/pps-mplayer/auto_firefox_association.py", line 22, in write_to_file
file_object.write(doc.toxml())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1843-1844: ordinal not in range(128)
引火虫
帖子: 758
注册时间: 2006-08-28 9:08
来自: 安徽/安庆

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#27

帖子 引火虫 » 2009-09-12 13:35

真的快疯掉了
我的还是不行
8.04真的走到头了吗
我的也是这样子

代码: 全选

UnicodeEncodeError: 'ascii' codec can't encode characters in position 1843-1844: ordinal not in range(128)
****************************************************************
重启一下就好了,
可是不知临时文件存在哪?
看完一部电影我的硬盘就没空间了。
loopwater
帖子: 92
注册时间: 2008-10-19 22:13

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#28

帖子 loopwater » 2009-09-12 19:29

引火虫 写了:真的快疯掉了
我的还是不行
8.04真的走到头了吗
我的也是这样子

代码: 全选

UnicodeEncodeError: 'ascii' codec can't encode characters in position 1843-1844: ordinal not in range(128)
****************************************************************
重启一下就好了,
可是不知临时文件存在哪?
看完一部电影我的硬盘就没空间了。
重启?重启10遍没用 : :em20 :em20

:em06 :em06
newbiee
帖子: 69
注册时间: 2009-08-27 21:59

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#29

帖子 newbiee » 2009-09-13 12:22

loopwater 写了:
引火虫 写了:真的快疯掉了
我的还是不行
8.04真的走到头了吗
我的也是这样子

代码: 全选

UnicodeEncodeError: 'ascii' codec can't encode characters in position 1843-1844: ordinal not in range(128)
****************************************************************
重启一下就好了,
可是不知临时文件存在哪?
看完一部电影我的硬盘就没空间了。
重启?重启10遍没用 : :em20 :em20

:em06 :em06
我手头没有低版本的ubuntu测试, 你试试修改auto_firefox_associate.py 里面 line 22,
file_object.write(doc.toxml().encode("utf-8"))
ax100
帖子: 28
注册时间: 2007-12-05 10:13

Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)

#30

帖子 ax100 » 2009-09-13 13:21

反正我的8.04用各种办法都有这样那样的问题,只有PPS官方修改过的mplayer好像没什么问题。照这个帖子跟FF关联一下,在楼主建的页面上就可以点播了,还算方便。至于sudo的问题是通过加sudoer来绕过的,虽然安全性有点问题,但方便了不少。

顺便问下,哪位知道PPS的mplayer播放时的临时文件是放在哪里的?
回复