ytdl-core 停止下载 YouTube 视频 - 我收到无效或意外的令牌

问题描述 投票:0回答:1

我使用 ytdl-core 下载 YouTube 视频,但现在当我运行我的应用程序 2 个月后它停止工作

SyntaxError: Invalid or unexpected token
    at new Script (node:vm:94:7)
    at exports.decipherFormats (C:\Users\DELL\OneDrive\Desktop\4)youAdderBackendcopy\node_modules\ytdl-core\lib\sig.js:116:51)       
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async exports.getInfo (C:\Users\DELL\OneDrive\Desktop\4)youAdderBackendcopy\node_modules\ytdl-core\lib\info.js:401:17)        
Emitted 'error' event on PassThrough instance at:
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.3.0
[nodemon] app crashed - waiting for file changes before starting...
javascript node.js download youtube-api
1个回答
0
投票

这是核心库中的一个新“错误”,特别是在

sig.js
中。
在这里您可以找到一些解决方法,使图书馆恢复正常运行

© www.soinside.com 2019 - 2024. All rights reserved.