Permalink
Browse files

work if source is either an mp3 or a flac file.

  • Loading branch information...
1 parent 07c5978 commit fef97cc9931978bf81cf5acd9c1fbf202aa9f4da Jon Higgs committed May 6, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 cp_id3_tags
View
@@ -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()

0 comments on commit fef97cc

Please sign in to comment.