人物问题

人物问题

我在 Proxmox 上的 LXC、Ubuntu 21.04(GNU/Linux 5.11.22-5-pve x86_64)中使用。

我遇到了一个问题,因为我看到一些奇怪的文件名。

例如:你是下一个(2011).mp4

但我可以在 shell 中看到:

You'\''re next (2011).mp4

我该如何修复它?

root@PLEX:/mnt/ROB_MASTER/Movies# **locale**
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

我在 plex 中使用这些文件,因此名称匹配很重要,否则抓取工具无法处理海报、情节等......

答案1

这不是一个错误!这被称为引用,基本上,如果“You're next (2011).mp4”中的引号前面没有反斜杠,它将被视为字符串文字的开头:

man bash

QUOTING
       Quoting  is used to remove the special meaning of certain characters or words to
       the shell.  Quoting can be used to disable special treatment for special charac‐
       ters,  to  prevent  reserved words from being recognized as such, and to prevent
       parameter expansion.

看这里

相关内容