跳转到主要内容

一个控制台脚本,用于清理iTunes库中的特色字符串

项目描述

简介

嘻哈音乐因在艺术家和曲目名称中添加额外信息而臭名昭著。此脚本可以帮助您在iTunes库中标准化并移动这些讨厌的(Feat. Some Artist)字符串。脚本允许您在iTunes中选择,然后从命令行运行脚本针对这些曲目。

代码仓库

https://github.com/claytron/claytron.featuring

PyPi

http://pypi.python.org/pypi/claytron.featuring/

问题

https://github.com/claytron/claytron.featuring/issues

安装

此脚本可以使用pip安装。我还建议将其安装到virtualenv中

$ pip install -U claytron.featuring

用法

您可以从-h选项中查看用法字符串

$ featuring_fix -h
Usage: featuring_fix [options]

This script will allow you to modify the tracks in your iTunes database.
Select the items that you want to modify in iTunes, then run this script from
the command line using the options below. The "featuring" strings will be
normalized and added to the comment tag as (Featuring Some Artist). The
previous contents of the comment will be left intact.

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -r, --real-run        Change the iTunes database (default: False)
  -c, --with-csv        Write change info into a CSV file
  -w, --featuring-with  Take care of 'with'
  -n, --no-parens       Process the tracks without parenthesis (be CAREFUL
                        with this option, since "featuring" is a common word)

默认情况下,脚本不会修改iTunes数据库,因为iTunes中没有真正的撤销功能。如果您想查看修改的结果,可以在命令行中运行featuring_fix并带有csv输出选项

$ featuring_fix -c

如果您想修改库中的文件,必须使用-r选项

$ featuring_fix -r

警告:处理大量选定的曲目可能需要很长时间。如果您想运行整个库,请确保播放一些音乐,然后去喝杯咖啡。

特色风格

一个曲目可以标记为“特色”艺术家的方式有很多种。以下是一些示例

Featuring Mr. Lif
Feat. Mr. Lif
Ft. Mr. Lif
f. Mr. Lif
f/Mr. Lif
with Mr. Lif
w/Mr. lif

我相信还有其他形式的这些邪恶字符串。目前脚本可以处理上述列表中除w/f/之外的所有内容。

变更日志

1.0.1 (2011-05-08)

  • 更新文档,包括代码仓库和问题跟踪器链接

1.0 (2011-05-08)

  • 初始发布

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

claytron.featuring-1.0.1.zip (10.2 kB 查看哈希值)

上传时间

由以下机构支持