问题描述
该代码曾经可以完美运行,但是由于某些原因(也许是更新?)而无法正常工作。
video_info = youtube_dl.YoutubedL().extract_info(url = link['href'],download = False)
filename = f"{link['name']}.mp3"
path = f'{folder_path}/{filename}'
yt_options = {
'format': 'bestaudio/best','keepvideo': False,'outtmpl': path,'postprocessors': [{
'key': 'FFmpegExtractAudio','preferredcodec': 'mp3','preferredquality': '192'
}]
}
with youtube_dl.YoutubedL(yt_options) as ydl:
ydl.download([video_info['webpage_url']])
它曾经可以正常工作,但现在我收到了以下消息:
ERROR: Unable to extract JS player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
我已经更新了系统上的存储库,但无法正常工作。
有人知道吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)