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

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第三方库


热门话题
具有x86javapath的x64机器上x86java上的java JNI未满足链接错误   java将Pixmap的一部分上传到GPU   图像Java位图RLE8格式   java Android studio谷歌广告崩溃应用程序   java如何创建包含未知数量对象的变量?   Java计算给定int数组的所有可能组合   java JDBC classnotfound异常   httpclient中的java将HttpEntity转换为字符串的最优雅/正确的方法是什么?   如何从Java程序运行nano?   java在安卓中调用自定义类/方法   调用方法和JOptionPane后,允许代码继续执行所需的java计时器或其他想法   关于侦听器的向量Java并发问题   线程池执行器Java线程池   java配置DTO上的Swagger javax验证约束   Java中用于按钮功能的swing操作命令   ServletOutputStream中的java设置状态代码   java打印输入数组的平均值