Advertisement

用python批量处理mp3和m4a文件重命名

阅读量:
复制代码
 # coding=utf-8

    
 import sys
    
 import os
    
 import eyed3
    
 import mutagen
    
 import asyncio
    
 import threading
    
 from mutagen.id3 import ID3, TIT2, TALB, TPE1, TPE2
    
 from mutagen.easyid3 import EasyID3
    
 from mutagen.mp4 import MP4
    
 from concurrent.futures import ThreadPoolExecutor
    
  
    
 gPool = ThreadPoolExecutor(20)
    
 gLock = threading.Lock()
    
 gIsError = False
    
 gSuffix = [".m4a", ".mp3", ".lrc"]
    
  
    
 '''
    
 description: 使用mutagen修改歌曲名,挺好用
    
 param {type} 
    
 return {type} void
    
 '''
    
  
    
  

全部评论 (0)

还没有任何评论哟~