一个简单的工具来修复有问题的提示文件。

cuefix的Python项目详细描述


奎菲克斯

PythonPyPITravis-CIDownloadsJoin the chat at https://gitter.im/cuefix/communityLicense

CueFix是一个简单的命令行工具,用于修复在无损音频/相册中流行的提示文件。

CueFix提供以下功能:

  • 提示文件编码自动检测:GB2312、GBK、GB18030、UTF-8、UTF-8 BOM、SHIFT-JIS
  • 提示文件转换编码:支持GB2312、UTF-8、UTF-8 BOM等
  • 转换提示文件的换行格式:支持Windows CRLF和Unix LF
  • 扫描目录并修复提示文件中不匹配的音频文件
  • 备份原始提示文件,以便用户可以还原提示文件
  • 与用户交互以验证固定提示文件

如果你愿意的话,请随时为这个项目捐款。

安装

先决条件

以下依赖关系是必需的:

  • Python 3.6或更高版本

选项1:通过pip安装

cuefix的正式版本发布在PyPI上。请注意,您应该使用python3版本的pip

$ pip3 install cuefix

选项2:从Github或git clone下载

这是开发人员推荐的方法。

^{pr2}$

运行./setup.py installcuefix安装到您的用户路径。

升级

如果使用pip安装cuefix,可以通过

$ pip3 install --upgrade cuefix

入门

$ cuefix -h
usage: cuefix [-h] [--version] [-v] [-y] [-i] [--dryrun] [-e {utf-8-sig,utf-8,gb2312}] [-n {unix,windows}]
              [--no-encoding] [--no-newline] [--no-backup]
              filepath

Fix a CUE file in a directory: convert encoding, convert newline character, fix not matched audio file.

positional arguments:
  filepath              file path to the input cue file

optional arguments:
  -h, --help            show this help message and exit
  --version             print the version of cuefix and exit
  -v, --verbose         enable verbose output

dry-run options:
  -y, --yes             disable interactive mode and yes to all prompts
  -i, --info            display metainfo of the input cue file only
  --dryrun              dry-run and print out fixed cue file

fix options:
  -e {utf-8-sig,utf-8,gb2312}, --encoding {utf-8-sig,utf-8,gb2312}
                        encoding which cue file will be converted to, default is UTF-8 BOM (utf-8-sig)
  -n {unix,windows}, --newline {unix,windows}
                        newline format which cue file will be converted to, default is Unix
  --no-encoding         converting encoding will be skipped
  --no-newline          converting newline will be skipped

backup options:
  --no-backup           no backup for the input cue file, USE WITH CAUTION!

您可以递归地运行cuefix来修复目录中的所有提示文件:

$ find <directory> -type f -name "*.cue" -exec cuefix -v {}\;

流行媒体播放器支持的提示格式

媒体播放器

  • Foobar 2000
    • Windows(版本1.5.5)
  • DeaDBeeF
    • Linux(版本1.8.4)
    • 安卓
    • 窗户(不稳定,夜间建造)
    • macOS(不稳定,夜间建造)
  • VOX
    • macOS(版本3.3.17)
    • iOS系统
  • Synology Audio Station
    • 概要DSM(版本6.2.3)
    • 音频站(版本6.5.5-3374)

编码

请在cuefix中使用以下编码名称:

  • UTF-8:utf-8
  • UTF-8物料清单:utf-8-sig
  • 国标2312:gb2312
PlatformUTF-8UTF-8 BOMGB 2312
Foobar 2000Windows:x::heavy_check_mark::heavy_check_mark:
DeaDBeeFLinux / Android:heavy_check_mark::heavy_check_mark::heavy_check_mark:
VOXmacOS / iOS:heavy_check_mark::heavy_check_mark::x:
Synology Audio StationNAS / Linux:heavy_check_mark::heavy_check_mark::x:

Note: DeaDBeeF on Linux could support CUE file in encoding GB 2312 by enabling Chinese CP 936 detection and recording in the settings. However, DeaDBeeF on macOS still cannot support GB 2312 even if we enable the setting. DeadDBeeF on Android has not been tested yet.

Note: VOX on iOS has not been tested yet.

新线

^{tb2}$

许可证

GNU General Public License v3.0

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java楼梯的最大高度   java Jackson从1.7.1更新到2.8.6 JsonTypeInfo子类型反序列化   Spring WebApp中的java JPA异常处理   java在SwingWorker(doInBackground)中从WorkerThread调用多个方法?   java Android Studio构建到jar   java是添加多个按钮组的更有效方法   java MySQL JDBC连接池最大大小   java如何防止元素<Integer>变成元素<Object>   Java:处理大型XML文件提取数据而不编写状态自动机?   SpringBoot和React Web应用程序中CAS的java重定向问题   需要java算法方面的帮助吗   java在JDK 16中使用PowerMock   java异常错误本机方法签名   在Java Android中将JSON映射到数组/对象   如何打开一个窗口。java程序中的dat文件   java应用程序引擎+Maven+热插拔   java Moxy的getValueByXPath为除根元素以外的所有元素返回null