VLC:在Mac OS X上更新VLC Lua youtube脚本的文件是什么



我正试图通过mac上的VLC阅读youtube视频:

/Applications/VLC.app/Contents/MacOS/VLC -v  https://www.youtube.com/watch?v=afzmwAKUppU&app=desktop

出现错误:

VLC media player 3.0.
8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[00007faf5b5e9140] lua generic warning: Error while running script /Applications/VLC.app/Contents/MacOS/share/lua/extensions/youtube.lua, function descriptor() not found
[00007faf5b4589c0] macosx interface warning: Failed to enable media key support, likely app needs to be whitelisted in Security Settings.
[00007faf5b784950] securetransport tls client warning: Ignoring ALPN request due to lack of support in the backend. Proxy behavior potentially undefined.
[00007faf5b770200] lua stream warning: Couldn't extract video URL, falling back to alternate youtube API
[00007faf5b6b5b60] securetransport tls client warning: Ignoring ALPN request due to lack of support in the backend. Proxy behavior potentially undefined.
[00007faf5f97ce70] securetransport tls client warning: Ignoring ALPN request due to lack of support in the backend. Proxy behavior potentially undefined.
2020-10-15 13:45:28.281 VLC[65658:198319] Can't find app with identifier com.spotify.client
[00007faf5b5d8580] lua stream error: Couldn't extract youtube video URL, please check for updates to this script
[00007faf5b44b570] main playlist: playlist is empty

youtube.lua,我从互联网上下载了文件:

curl "http://git.videolan.org/?p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua;hb=HEAD" -o /Applications/VLC.app/Contents/MacOS/share/lua/extensions/youtube.lua

这在我的ubuntu上有效,但在我的Mac上无效:我想知道这是否不是Mac OS的正确版本。那么,应该放哪个文件呢?如果我查看VLC Lua目录,我会发现:

/Applications/VLC.app/Contents/MacOS/share/lua/extensions$ ls -l
total 192
-rw-r--r--@ 1 romain  admin    72K Aug 14  2019 VLSub.luac
-rw-r--r--  1 root    admin    22K Oct 15 13:35 youtube.lua

youtube.lua是我添加的新脚本,但也许它是另一个放在那里的脚本?

现在可能有点晚了,但无论如何:您需要从这里获取youtube.lua:https://github.com/videolan/vlc/blob/master/share/lua/playlist/youtube.lua

然后将其重命名为youtube.luac,并将其放置在目录(对于MacOS(/Applications/VLC.app/Contents/MacOS/share/lua/playlist

我建议重新命名旧的,并保留它,以防出现问题。

至少在我的电脑上,这起到了作用,我现在可以再次在VLC中打开YouTube视频了。

您尝试过3.0.11.1版本吗?https://get.videolan.org/vlc/3.0.11.1/macosx/vlc-3.0.11.1.dmg

youtube.lua将是正确的文件,这是正确的,尽管问题可能来自代码的其他部分。仅供参考,由于您正在运行稳定的VLC构建,因此您应该查看的代码是https://code.videolan.org/videolan/vlc-3.0/-/blob/master/share/lua/playlist/youtube.lua.

https://code.videolan.org/videolan/vlc/-/blob/master/share/lua/playlist/youtube.lua是夜间v4不稳定的构建(尽管对于lua脚本,它们是相同的(。

此外,请留意即将发布的带有更新脚本的新版本https://mailman.videolan.org/pipermail/vlc-devel/2020-October/139076.html

相关内容

  • 没有找到相关文章

最新更新