Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube音源的歌无法播放 #573

Open
Hipponensis opened this issue Mar 16, 2022 · 8 comments
Open

YouTube音源的歌无法播放 #573

Hipponensis opened this issue Mar 16, 2022 · 8 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Hipponensis
Copy link

Hipponensis commented Mar 16, 2022

INFO: (spawn) running yt-dlp -f 140 --dump-json ytsearch1:HUMAN LOST - Fox loco phantom
INFO: (spawn) running yt-dlp -f 140 --dump-json https://www.youtube.com/watch?v=uzGORjZR1cU
WARN: (request) The request timed out, or the requester didn't handle the response.
url: "http://kuwo.cn/search/list?key=HUMAN%20LOSTFox%20loco%20phantom"
ERROR: (provider/match) connect ETIMEDOUT xx.xx.xx.xx:443
Error: connect ETIMEDOUT xx.xx.xx.xx:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
errno: -4039
code: ETIMEDOUT
syscall: connect
address: xx.xx.xx.xx
port: 443
ERROR: (hook) All promises were rejected
AggregateError: All promises were rejected

直接使用yt-dlp下载https://www.youtube.com/watch?v=uzGORjZR1cU 是没问题的

@pan93412
Copy link
Member

INFO: (spawn) running yt-dlp -f 140 --dump-json ytsearch1:HUMAN LOST - Fox loco phantom
INFO: (spawn) running yt-dlp -f 140 --dump-json https://www.youtube.com/watch?v=uzGORjZR1cU
WARN: (request) The request timed out, or the requester didn't handle the response.
url: "http://kuwo.cn/search/list?key=HUMAN%20LOSTFox%20loco%20phantom"
ERROR: (provider/match) connect ETIMEDOUT xx.xx.xx.xx:443
Error: connect ETIMEDOUT xx.xx.xx.xx:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
errno: -4039
code: ETIMEDOUT
syscall: connect
address: xx.xx.xx.xx
port: 443
ERROR: (hook) All promises were rejected
AggregateError: All promises were rejected

直接使用yt-dlp下载https://www.youtube.com/watch?v=uzGORjZR1cU 是没问题的

我這裡簡單測試了一下,似乎無法復現。先標 help wanted。

@pan93412 pan93412 added bug Something isn't working help wanted Extra attention is needed labels Mar 16, 2022
@nidemkzi
Copy link

一样有这个问题,, 大佬解决了不

@Amarterlus
Copy link

Amarterlus commented Jul 22, 2023

我更改了yt-dlp.js
18行改为
const dlArguments = (query) => ['-f', '140', '--dump-json', query,'--proxy','http://127.0.0.1:7890'];
运行的时候依旧timeout 7890是我本地的clash代理
image

@lam126
Copy link

lam126 commented Sep 7, 2023

同样,对yt-dlp使用了代理,
不过问题好像是出现在provider/match里面的request没有走代理?看不懂
图片

@pan93412
Copy link
Member

pan93412 commented Sep 9, 2023

對,應該是 provider/match 的問題。我這裡確認一下。

@Pekary
Copy link

Pekary commented Dec 20, 2023

请问这个问题解决了么?

@JarmoHu
Copy link

JarmoHu commented Feb 13, 2024

根据我个人的研究,并不是获取json(即匹配歌曲的时候出现bug),而是已经获取到音源url,下载文件的时候出现bug。我个人怀疑是YouTube加强了防火墙,请求直接被拦截了我在香港的服务器上通过docker搭建是可以用的,说明可能还是代理问题。这个请求由match.js调用request.js里的函数实现的。

@JarmoHu
Copy link

JarmoHu commented Feb 13, 2024

#1355 临时使用可以看看我的修改方案

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants