$ ls ~/.cache/netease-cloud-music/CachedSongs/ -1
1609689-320-b70d1d38edd3f443bc503f592fc440ed.mp3
25638306-320-3d42ddad5384518bbbf8bc68fff4cdfa.mp3
4254253-128-1fb4ae7055ea4ceb36862f6228e61aa4.mp3
441116287-128-0d15579de47acbe4c8177e54ba43bf4b.mp3
因此主要需要的是重命名,使用如下
$ python netease_rename.py
source = ~/.cache/netease-cloud-music/CachedSongs, dist = ./output_music
song_id = 25638306, tt.tag title = ありがとう…, artist = KOKIA, album = ありがとう…, album_artist = KOKIA
song_id = 441116287, tt.tag title = 茜さす, artist = Aimer, album = 茜さす/everlasting snow, album_artist = Aimer
song_id = 4254253, tt.tag title = Mustang cabriolet, artist = Paris Brune, album = L’œil du cyclone, album_artist = Paris Brune
song_id = 1609689, tt.tag title = Vale Of Tears, artist = Jay Clifford, album = Silver Tomb For The Kingfisher, album_artist = Jay Clifford
输出
$ ls ./output_music/ -1
'Aimer - 茜さす.mp3''Jay Clifford - Vale Of Tears.mp3''KOKIA - ありがとう….mp3''Paris Brune - Mustang cabriolet.mp3'
$ ./netease_download_playlist.py -p 101562485 -d ~/Downloads/netease
...
song id = 22701801, bytes write = 9.59M
song_id = 22701801, tt.tag {title = ありがとう..., artist = KOKIA, album = Complete collection 1998-1999, album_artist = KOKIA}
dist_name = /home/leondgarse/Downloads/netease/KOKIA - ありがとう....mp3
...
song id = 441116287, bytes write = 5.04M
song_id = 441116287, tt.tag {title = 茜さす, artist = Aimer, album = 茜さす/everlasting snow, album_artist = Aimer}
dist_name = /home/leondgarse/Downloads/netease/Aimer - 茜さす.mp3
...
下载失败的文件
>>>> download_url is None, maybe it is limited by copyright. song_id = 497762
>>>> File NOT downloaded, song_id = 497762
本地已有的文件
File /home/leondgarse/Downloads/netease/Wiz Khalifa - See You Again.mp3 exists, skip downloading
dist_name = /home/leondgarse/Downloads/netease/Wiz Khalifa - See You Again.mp3
File /home/leondgarse/Downloads/netease/Charlie Puth - Need You Now.mp3 exists, skip downloading
dist_name = /home/leondgarse/Downloads/netease/Charlie Puth - Need You Now.mp3
下载完成
Song not downloaded:
497762: スガシカオ - 19才
27533158: Kari Kimmel - Fingerprints
Song downloaded id: [287025, 29481242, ...]
Song not downloaded id: [497762, 27533158, ...]
Downloaded = 190, NOT downloaded = 14
Dowload from netease, song_id = 286970, title = 愚人的国度, artist = 孙燕姿
song id = 286970, bytes write = 3.80M
song_id = 286970, tt.tag {title = 愚人的国度, artist = 孙燕姿, album = 是时候, album_artist = 孙燕姿}
Move /home/leondgarse/Downloads/netease_refreshed/286970-bite_rate-random_num.mp3 to /home/leondgarse/Downloads/netease_refreshed/孙燕姿 - 愚人的国度.mp3
本地没有且下载失败的文件
Dowload from netease, song_id = 497762, title = 19才, artist = スガシカオ
>>>> download_url is None, maybe it is limited by copyright. song_id = 497762
Song not found, song_id = 497762, title = 19才, artist = スガシカオ
更新完成
New downloaded size = 15
286970: 孙燕姿 - 愚人的国度
497762: スガシカオ - 19才
27533158: Kari Kimmel - Fingerprints
...
New downloaded id: [286970, 497762, 27533158, ...]