Replies: 3 comments 10 replies
-
关于这点,其实从扩展名末位开始匹配就可以避免了
不过确实使用场景极少 |
Beta Was this translation helpful? Give feedback.
0 replies
-
由于网络视频时生成缩略图会失败,所以这种情况下禁用它
近期版本的yt-dlp无法播放b站视频的解决 #89 (comment) [bilibili-add-referrer]
profile-desc = Add referrer for BiliBili video
profile-cond = path:match("https://www.bilibili.com")~=nil
profile-restore = copy
referrer = https://www.bilibili.com/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
@dyphire 有没有体现 |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
关联的前置文档:
为了防止一般参数与profile的参数因不小心产生混淆,我在 mpv.conf 中用
include="~~/profiles.conf"
指定了一个单独的文件存放所有的profile;其中原先的部分内容因没啥实用性已从 profiles.conf 中剔除,此处归档记录。
内置的配置预设组
来源 https://github.com/mpv-player/mpv/blob/master/etc/builtin.conf
传统的配置预设组
MPV_lazy/portable_config/profiles.conf
Lines 184 to 208 in 6e783a2
传统配置预设 ➡️ 条件配置预设
如次标题所述,两类传统配置组都可以转为条件配置组的形式,见示例。
注意:对于某些情况,这个判定条件并不够。
例如文件完整名
[www.mp4.com]A-team.the_movie.x264.720p.mkv
profile-cond = filename:match("%.mp4")~=nil
会因匹配到了前部文件名中的字符串而触发配置ps.所以为什么不直接提供扩展名的属性???
Beta Was this translation helpful? Give feedback.
All reactions