Skip to content

Commit

Permalink
work if source is either an mp3 or a flac file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Higgs committed May 6, 2012
1 parent 07c5978 commit fef97cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cp_id3_tags
Expand Up @@ -13,8 +13,10 @@ dest_id3.delete()
dest = MP3(sys.argv[2])
dest.add_tags(ID3=EasyID3)

source = FLAC(sys.argv[1])
#id3 = EasyID3(sys.argv[1])
if sys.argv[1].split(".")[1] == "flac":
source = FLAC(sys.argv[1])
else:
source = MP3(sys.argv[1])

dest.delete()

Expand Down

0 comments on commit fef97cc

Please sign in to comment.