youtube-dl 使用 get 参数获取的视频地址,为什么只有很短时间内可以下载?

2016-06-17 19:56:44 +08:00
 moonkiller
针对 pornhub 上的播单,直接用 youtube-dl 下载的话,速度太慢了,不到 100kb
于是使用 get 参数,获取了播单里的视频地址
都是 http://cdn2b.video 开头的

这些地址导入 idm ,一开始是可以下载;
但是过了一会儿,后面就全部下载错误了
该怎么办?
7914 次点击
所在节点    问与答
4 条回复
Floyder
2016-06-17 19:59:36 +08:00
说起来最近 youtube-dl a,b 俩站都不能解析了,是我一个人的问题么?
Playing: http://www.bilibili.com/video/av4987511/
[ytdl_hook] Traceback (most recent call last):
[ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
[ytdl_hook] "__main__", fname, loader, pkg_name)
[ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
[ytdl_hook] exec code in run_globals
[ytdl_hook] File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 421, in main
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 411, in _real_main
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1736, in download
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 676, in extract_info
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 341, in extract
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/extractor/bilibili.py", line 62, in _real_extract
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 524, in _download_xml
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 280, in compat_etree_fromstring
[ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 269, in _XML
[ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
[ytdl_hook] self._raiseerror(v)
[ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
[ytdl_hook] raise err
[ytdl_hook] xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
[ytdl_hook] youtube-dl failed, trying to play URL directly ...
Failed to recognize file format.
ZGLHHH
2016-06-17 20:00:19 +08:00
token 有效期?
moonkiller
2016-06-17 20:01:51 +08:00
@Floyder 倒没试过 a\b 站刚我又用 youtube-dl 直接下载,被提示远程主机强迫关闭了一个现有的链接。。。
看来是不是被 pornhub 那边给屏蔽了。。。
debiann
2016-06-17 20:06:44 +08:00
@Floyder 下载成功,试着更新下 youtube-dl

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/286542

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX