Created
October 9, 2014 20:45
-
-
Save dublado/438a6a409e0fdcb302cd to your computer and use it in GitHub Desktop.
change title and author id3 tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
with open("names.txt", "r") as fp: | |
for file_num, line in enumerate(fp): | |
if line.strip() != 'id3tagger.py': | |
artist = line.strip().split('-')[0] | |
title = line.strip().split('-')[1] | |
line = line.strip() | |
artist = artist.strip() | |
title = title.strip() | |
print line | |
#print sep.strip() | |
print 'id3tool --set-title="{title}" --set-artist="{artist}" --set-album="madrugada music" "{line}"'.format(file_num=file_num, title=title, artist=artist,line=line) | |
#sys.exit() | |
os.system('id3tool --set-title="{title}" --set-artist="{artist}" --set-album="madrugada music" "{line}"'.format(file_num=file_num, title=title, artist=artist,line=line)) | |
#sys.exit() | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment