
基于web的ppstream+sopcast+pplive节目单(firefox 点播)(可搜索) (09/27更新)
- youqika
- 帖子: 720
- 注册时间: 2008-09-25 20:56
- momova
- 帖子: 3381
- 注册时间: 2007-07-11 21:43
- 系统: archlinux
- 来自: 东江边
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/07更新)
http://drop.io/allinone/asset/all-in-one-tgz
试了一下。
改了一个这个。这样方便别人修改喜欢的term。而且我的xterm已经是alias过了的,所以指向了原始文件。
export PPS_MPLAYER_PATH=$HOME"/pps-mplayer"
应该改成用$0取路径。自动些。
试了一下。
改了一个这个。这样方便别人修改喜欢的term。而且我的xterm已经是alias过了的,所以指向了原始文件。
代码: 全选
TERM='/usr/bin/xterm'
$TERM -e 。。。。。
应该改成用$0取路径。自动些。
代码: 全选
export PPS_MPLAYER_PATH=`dirname $0`
等15秒太长了吧。$0:脚本名字。此变量包含地址,可以使用basename $0获得脚本名称。
● 鸣学
-
- 帖子: 69
- 注册时间: 2009-08-27 21:59
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/07更新)
不错不错. 我喜欢那个自动获得目录的方案. 待我更新我的原帖.多谢. 15秒已经比原sopcast script 作者(chick 很 femme 的名字)默认的20秒进步了.呵呵eexpress 写了:http://drop.io/allinone/asset/all-in-one-tgz
试了一下。
改了一个这个。这样方便别人修改喜欢的term。而且我的xterm已经是alias过了的,所以指向了原始文件。export PPS_MPLAYER_PATH=$HOME"/pps-mplayer"代码: 全选
TERM='/usr/bin/xterm' $TERM -e 。。。。。
应该改成用$0取路径。自动些。代码: 全选
export PPS_MPLAYER_PATH=`dirname $0`
等15秒太长了吧。$0:脚本名字。此变量包含地址,可以使用basename $0获得脚本名称。
- youqika
- 帖子: 720
- 注册时间: 2008-09-25 20:56
-
- 帖子: 1
- 注册时间: 2009-09-11 3:56
-
- 帖子: 92
- 注册时间: 2008-10-19 22:13
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
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
给点修改提示
代码头上指定GBK或者UTF8都有问题俄
Python 2.6.2 (release26-maint)
ubuntu9.04
给点修改提示
-
- 帖子: 69
- 注册时间: 2009-08-27 21:59
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
你是说哪个文件?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
给点修改提示
-
- 帖子: 92
- 注册时间: 2008-10-19 22:13
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
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)
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)
-
- 帖子: 69
- 注册时间: 2009-08-27 21:59
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
你的目录里面有中文(桌面),你试试把他copy到一个纯英文的目录中。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)
-
- 帖子: 92
- 注册时间: 2008-10-19 22:13
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
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)
(/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更新)
真的快疯掉了
我的还是不行
8.04真的走到头了吗
我的也是这样子
****************************************************************
重启一下就好了,
可是不知临时文件存在哪?
看完一部电影我的硬盘就没空间了。
我的还是不行
8.04真的走到头了吗
我的也是这样子
代码: 全选
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1843-1844: ordinal not in range(128)
重启一下就好了,
可是不知临时文件存在哪?
看完一部电影我的硬盘就没空间了。
-
- 帖子: 92
- 注册时间: 2008-10-19 22:13
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
重启?重启10遍没用 :引火虫 写了:真的快疯掉了
我的还是不行
8.04真的走到头了吗
我的也是这样子****************************************************************代码: 全选
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1843-1844: ordinal not in range(128)
重启一下就好了,
可是不知临时文件存在哪?
看完一部电影我的硬盘就没空间了。




-
- 帖子: 69
- 注册时间: 2009-08-27 21:59
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
我手头没有低版本的ubuntu测试, 你试试修改auto_firefox_associate.py 里面 line 22,loopwater 写了:重启?重启10遍没用 :引火虫 写了:真的快疯掉了
我的还是不行
8.04真的走到头了吗
我的也是这样子****************************************************************代码: 全选
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1843-1844: ordinal not in range(128)
重启一下就好了,
可是不知临时文件存在哪?
看完一部电影我的硬盘就没空间了。![]()
![]()
![]()
file_object.write(doc.toxml().encode("utf-8"))
-
- 帖子: 28
- 注册时间: 2007-12-05 10:13
Re: 基于web的ppstream+sopcast+pplive节目单(firefox 点播) (09/09更新)
反正我的8.04用各种办法都有这样那样的问题,只有PPS官方修改过的mplayer好像没什么问题。照这个帖子跟FF关联一下,在楼主建的页面上就可以点播了,还算方便。至于sudo的问题是通过加sudoer来绕过的,虽然安全性有点问题,但方便了不少。
顺便问下,哪位知道PPS的mplayer播放时的临时文件是放在哪里的?
顺便问下,哪位知道PPS的mplayer播放时的临时文件是放在哪里的?