前言 经过多年的探索,我总结了一套最适合我的听音乐和管理音乐的方法,这个方法并不是十分容易实现,并且为了它我也写了一些脚本,因此我把它分享出来,大家如果有需要也可以试试看。 这个方法适合谁 喜欢收藏经典音乐,喜欢将音乐下载到本地音乐库中听 有 Windows/Mac,但也希望 Linux/iPod/Android 可以用(有全平台需求) 2019.10.29 更新:解决了itunes2rhythmbox中日韩歌曲无法匹配的问题 这个问题困扰我好久,歌曲名本身看起来是一样的,但是却找不到相应的文件,原因是unicode编码方式会使有的字看起来一样编码却不一样。比如日语中的が本应是一个字符,从mac复制过来后文件名变成了2个字符か和右上角的两个点的两个字符,韩语也同理。我也没有办法穷举出所有的变化,所以就使用源文件与目标文件路径字符串之间的编辑距离以及路径中ascii码的编辑距离两个特征进行匹配,寻找最接近的音乐文件以匹配。新版的itunes2rhythmbox脚本见 这个链接 #!/usr/bin/env fish #!/usr/bin/env python3 import heapq import multiprocessing import os import re import sys from itertools import zip_longest from xml.etree import ElementTree help_message = '''Usage: Close Rhythmbox, then type: itunes2rhythmbox If you are to move or sync your whole iTunes library to Rhythmbox, This script will help you to convert iTunes playlist to Rhythmbox style playlist, and import the playlist to Rhythmbox directly. Before using this script, you should have: - an iTunes folder copied directly from your Wind...