]> git.parisson.com Git - telecaster-server.git/commitdiff
fix id3 date
authoryomguy <>
Mon, 8 Feb 2010 12:24:08 +0000 (12:24 +0000)
committeryomguy <>
Mon, 8 Feb 2010 12:24:08 +0000 (12:24 +0000)
station.py

index 39c44d565e082bd0dd534995520ff8c46d4f5579..8d9a05fbec822aee08e1351f9f32b156232ba99c 100644 (file)
@@ -48,7 +48,7 @@ import jack
 import unicodedata
 from tools import *
 from mutagen.oggvorbis import OggVorbis
-from mutagen.id3 import ID3, TIT2, TP1, TAL, TDA, TCO, COM
+from mutagen.id3 import ID3, TIT2, TP1, TAL, TDA, TDAT, TDRC, TCO, COM
 
 class Conference:
     """A conference object including metadata"""
@@ -239,7 +239,7 @@ class Station(Conference):
             #tag = tags.__dict__['ALBUM']
             audio.add(TAL(encoding=3, text=self.title.decode('utf8')))
             #tag = tags.__dict__['DATE']
-            audio.add(TDA(encoding=3, text=self.date.decode('utf8')))
+            audio.add(TDRC(encoding=3, text=datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
             #tag = tags.__dict__['GENRE']
             audio.add(TCO(encoding=3, text=self.genre.decode('utf8')))
             #tag = tags.__dict__['COMMENT']