cc-4305: renamed time variable not to interefere with time module
This commit is contained in:
parent
52b2423596
commit
7a926edd8f
|
@ -141,18 +141,16 @@ class ShowRecorder(Thread):
|
|||
try:
|
||||
date = self.start_time
|
||||
md = date.split(" ")
|
||||
# TODO : rename 'time' variable to something better so that there
|
||||
# is no naming conflicts with the time module that is being
|
||||
# imported
|
||||
time = md[1].replace(":", "-")
|
||||
self.logger.info("time: %s" % time)
|
||||
|
||||
name = time + "-" + self.show_name
|
||||
record_time = md[1].replace(":", "-")
|
||||
self.logger.info("time: %s" % record_time)
|
||||
|
||||
show_title = time + "-" + self.show_name
|
||||
artist = "Airtime Show Recorder"
|
||||
|
||||
#set some metadata for our file daemon
|
||||
recorded_file = mutagen.File(filepath, easy = True)
|
||||
recorded_file['title'] = name
|
||||
recorded_file['title'] = show_title
|
||||
recorded_file['artist'] = artist
|
||||
recorded_file['date'] = md[0]
|
||||
#recorded_file['date'] = md[0].split("-")[0]
|
||||
|
|
Loading…
Reference in New Issue