我正在尝试下载某一集。我已登录 foodnetwork,保存了我的 cookies.txt 文件,但运行时出现这些错误。youtube-dl "https://watch.foodnetwork.com/tv-shows/chopped/full-episodes/flavor-savor" --cookies /home/username/Downloads/cookies.txt
有什么建议吗?youtube-dl 是最新的。我还尝试重新安装 youtube-dl。
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 474, in main
File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 464, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2018, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/discovery.py", line 69, in _real_extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 2817, in _get_cookies
File "/usr/lib/python2.7/Cookie.py", line 583, in __init__
if input: self.load(input)
File "/usr/lib/python2.7/Cookie.py", line 643, in load
for k, v in rawdata.items():
AttributeError: 'unicode' object has no attribute 'items'