
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/libook/jellyfin-sort/blob/master/README.zh.md
Make media in multiple languages uniformly sorted in the order of the Latin alphabet (ABCD ......) in Jellyfin.
Note : This tool will modify the "Short title" of media metadata, if you want to keep the manually modified short title, please use JELLYFIN_SORT_EMPTY_ONLY environment variable to enable the ignore feature.
First, you need to prepare the following information:
+ button in the Jellyfin main menu => Dashboard in Administration => API Keys in Advanced => click the + button. For example "cd1fedb049404c17af7b6026badf50a5"When you are ready, you can refer to the following ways to use it.
To learn how to install and use Docker, please refer to the https://docs.docker.com/get-docker/.
A one-time run:
shelldocker run --rm \ --name=Jellyfin-Sort \ --env=JELLYFIN_SERVER={Jellyfin URL} \ --env=JELLYFIN_KEY={Jellyfin API Key} \ --restart=unless-stopped \ libook/jellyfin-sort:latest
Replace {Jellyfin URL}, {Jellyfin API Key} with your own information. See Parameter list below for more parameters.
To add environment variables when creating Docker containers, simply add --env= in front of the new environment variable and add ={value} after the environment variable, such as "--env=JELLYFIN_SORT_E***Y_ONLY=true".
Docker image can be found in https://hub.docker.com/r/libook/jellyfin-sort.
To learn how to install and use Node.js, please refer to the https://nodejs.org/en/learn/getting-started/how-to-install-nodejs.
Clone or download code from GitHub:
shellgit clone https://github.com/libook/jellyfin-sort.git
Enter project directory, install dependencies:
shellnpm ci
A one-time run:
shellJELLYFIN_SERVER={Jellyfin URL} \ JELLYFIN_KEY={Jellyfin API Key} \ node ./src/daemon.js
Replace {Jellyfin URL}, {Jellyfin API Key} with your own information. See Parameter list below for more parameters.
To add an environment variable when running a Node.js program, simply add the environment variable before the node command and add ={value} after the environment variable, e.g. "JELLYFIN_SORT_E***Y_ONLY=true".
All parameters are environment variables.
JELLYFIN_KEY
+ button in the Jellyfin main menu => Dashboard in Administration => API Keys in Advanced => click the + button. For example "cd1fedb049404c17af7b6026badf50a5".JELLYFIN_SERVER
JELLYFIN_SORT_BATCH_LIMIT
JELLYFIN_SORT_CRON
,. e.g. "42 * * * *,18 * * * *".JELLYFIN_SORT_EMPTY_ONLY
false, 0, etc. is also equivalent to turning it on since it is only turned off if not used or left blank.JELLYFIN_SORT_HOOK_PORT
Dashboard in Administration => Plugins in Advanced, install the weebhook plugin. Click Webhooks=>Add Generic Destination, type in the URL of Jellyfin Sort, check Item Added and click Save. When a new media is added to Jellyfin, a notification will automatically be sent to Jellyfin Sort, and Jellyfin Sort will process the media directly.-p host port:container port when creating the Docker container.If the program neither needs to wait to receive the Webhook nor has a scheduled task to wait for, it will exit automatically when processing is complete.
Annex: Cron format quick reference
┌───────────── minute (0–59) │ ┌───────────── hour (0–23) │ │ ┌───────────── day of the month (1–31) │ │ │ ┌───────────── month (1–12) │ │ │ │ ┌───────────── day of the week (0–6) (Sunday to Saturday) │ │ │ │ │ │ │ │ │ │ * * * * *
By default, Jellyfin uses the media title to sort the list, if the user sets "Short title", the short title of the media will be used as the basis for sorting.
Many languages have a Latinized (romanized) scheme. Alphabetic writing systems such as French, German, ***, etc. can be roughly converted by mapping to the Latin alphabet. Chinese, Japanese, and other hieroglyphic writing systems can be roughly transformed into Latin alphabet representations by means of a phonetic system. It should be noted that, due to the complexity and non-strictness of natural languages, such transformations may not be completely accurate, but they are usually sufficient for sorting.
This project uses GPL-3.0 license, anyone can contribute code as Pull Request.
This project uses ESLint and configured rules, please make sure the code conforms to the rules, if you have questions about the rules, you can submit an Issue to discuss.
This project uses the https://www.conventionalcommits.org style, please make sure that the commit message conforms to the style specification when you commit the code.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务