lnln1111 / gappproxy

Automatically exported from code.google.com/p/gappproxy
GNU General Public License v3.0
0 stars 1 forks source link

为什么不能看youtube视频? #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

用gappproxy 访问youtube 播放视频,总会出现“an error 
occured,please try
again later”,刚开始以为是gappproxy 
不支持大文件的缘故,可现在支持大文件
了,youtube 
还是出现同样的错误。但播放其他网站上的一些视频时却没��
�题,如
http://vimeo.com。可以看高清视频。

Original issue reported on code.google.com by angelo...@gmail.com on 27 Sep 2009 at 9:56

GoogleCodeExporter commented 9 years ago
可能是防盗链吧。

Original comment by cracks...@gmail.com on 27 Sep 2009 at 2:18

GoogleCodeExporter commented 9 years ago
更新到 r96的proxy.py 和 r97的fetch.py

Original comment by cnb...@gmail.com on 7 Oct 2009 at 7:21

GoogleCodeExporter commented 9 years ago
r97的fetch.py是放在了C:\Program 
Files\Google\google_appengine\fetchServer目录下
r96的proxy.py放在哪里呢? 
我搜索了一下,在我的机子上找不到这个文件。。
求解。

Original comment by qqasz...@gmail.com on 8 Oct 2009 at 9:37

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/gappproxy/source/browse/#svn/trunk

fetchserver GAE服务端  fetch.py   

localproxy 本地代理  proxy.py 

Original comment by cnb...@gmail.com on 8 Oct 2009 at 3:23

GoogleCodeExporter commented 9 years ago
还是不行啊,fetchpy跟proxy都照你说的放了,还是那个错误提��
�

Original comment by ssyknu...@gmail.com on 13 Oct 2009 at 10:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
从svn下载最新版,用python版的客户端
登录youtube首页看看那些推荐的电影,呵呵 国人阿

Original comment by icson.z...@gmail.com on 26 Nov 2009 at 1:22

GoogleCodeExporter commented 9 years ago
国人怎么了,囧。
麻烦楼上详细解释

Original comment by dec4rhap...@gmail.com on 16 Dec 2009 at 7:29

GoogleCodeExporter commented 9 years ago
我也是svn的,也不行

Original comment by CyrusYz...@gmail.com on 14 Jan 2010 at 7:35

GoogleCodeExporter commented 9 years ago
刚刚从http://gappproxy.googlecode.com/svn/trunk/fetchserver/ 
做了更新,还是看不了
youtube,“An error occurred, please try again later.” 
我用firebug看了firefox发到
youtube的http请求,发现了只有一个http请求有问题(blocker),如下�
��
-------------------------------------
http URL:
http://r6.atl2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2
Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&algorithm=throttle-factor&itag=34&ip
bits=0&burst=40&sver=3&expire=1267102800&key=yt1&signature=022ED53A120C1EC0C4E62
5ED7C11335D132AD4D4.48454321E4C989E15EE6B90907551A696B559748&factor=1.25&id=1ed8
4beb6b88dd95&st=lc

错误信息: 592 Fetch server error, Retry with range header.
对应的源代码:

if range_request:
                    range_supported = False
                    for h in resp.headers:
                        if h.lower() == "accept-ranges":
                            if resp.headers[h].strip().lower() == "bytes":
                                range_supported = True
                                break
                        elif h.lower() == "content-range":
                            range_supported = True
                            break
                    if range_supported:
                        self.sendErrorPage(592, "Fetch server error, Retry with range
header.")
----------------------------
请问如何用range header?

Original comment by steven...@gmail.com on 25 Feb 2010 at 6:37

GoogleCodeExporter commented 9 years ago
求正解帝,最好写个详细的解决方案!

Original comment by huangyan...@gmail.com on 25 Feb 2010 at 10:38

GoogleCodeExporter commented 9 years ago
没法看的可以参考下这博文:
http://tonysh-thu.blogspot.com/2009/10/gappproxyyoutube.html

没法看的应该是没有把最新的fetchserver放到google 
appengine然后上传更新到你的帐号吧。然后再通过python使用proxy
.py.

Original comment by iwandere...@gmail.com on 26 Feb 2010 at 3:25

GoogleCodeExporter commented 9 years ago
我更新了客戶端,现在看youtube没问题了

Original comment by steven...@gmail.com on 8 Mar 2010 at 3:38

GoogleCodeExporter commented 9 years ago
我的fatch.py和proxy.py都是102版的,整个目录都是102版的,可是�
��是不能看youtube
an error occured, please try again later

Original comment by johncarm...@gmail.com on 23 Apr 2010 at 2:37

GoogleCodeExporter commented 9 years ago
我的fatch.py和proxy.py都是102版的,整个目录都是102版的,可是�
��是不能看youtube
显示 an error occured, please try again later
我也正确地上传了google app 
engine,我用的是chrome浏览器。我是从SVN上下载的102版。
svn checkout http://gappproxy.googlecode.com/svn/trunk/ gappproxy-read-only

Original comment by johncarm...@gmail.com on 23 Apr 2010 at 2:49

GoogleCodeExporter commented 9 years ago
102版不能看youtube的解决方法:
用文本编辑器打开proxy.py,搜索 common.VERSION 
,有2个位置,一个是192行,一个是294行,替
换成 1.0 。
即: "version": 1.0})
我用python-2.6.4和102版的源代码,经过修改 common.VERSION 
之后,可以看 youtube 。

Original comment by johncarm...@gmail.com on 24 Apr 2010 at 2:00

GoogleCodeExporter commented 9 years ago
Yeah,102版将common.VERSION替换成1.0后youtube成功。

Original comment by Hongpei....@gmail.com on 25 Apr 2010 at 12:49

GoogleCodeExporter commented 9 years ago
proxy.py这个文件是8.43M哪个吗?

Original comment by n31003...@gmail.com on 26 Apr 2010 at 3:33

GoogleCodeExporter commented 9 years ago
感谢 johncarm兄提供解决方法

Original comment by xian...@eyou.com on 29 Apr 2010 at 10:11

GoogleCodeExporter commented 9 years ago
请问修改后,是不是要重新上传一个新的服务(就是原来的��
�务名不能用了)?

Original comment by weiya.le...@gmail.com on 30 Apr 2010 at 2:56

GoogleCodeExporter commented 9 years ago
我是用GUI的,没有proxy.py,咋修改 ( ⊙ o ⊙ )啊! 

Original comment by weiya.le...@gmail.com on 30 Apr 2010 at 3:48

GoogleCodeExporter commented 9 years ago
tryagain.....
听说Google App Engine每天只有1G流量?看youtube是不是浪费了点啊

Original comment by ren0...@gmail.com on 3 May 2010 at 2:10

GoogleCodeExporter commented 9 years ago
102版将common.VERSION替换成1.0后youtube成功!

Original comment by sdzi...@gmail.com on 23 May 2010 at 12:13

GoogleCodeExporter commented 9 years ago
102 版本, 更改 common.VERSION 后还是不可以, firefox 进度条停在 
"等待 www.youtube.com" 上, 
python 版本为 2.6.4

Original comment by zhouzha...@gmail.com on 25 May 2010 at 6:31

GoogleCodeExporter commented 9 years ago
成功!

Original comment by mylinux...@gmail.com on 26 May 2010 at 8:54