Re-add time property, needed for setting the mtime on the saved file.
This commit is contained in:
parent
82e82c3e79
commit
eaef3a88bf
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ class TivoItem:
|
|||
self.description = trimDescription(getTagText(i, "Description"))
|
||||
d = getTagText(i, "CaptureDate")
|
||||
self.date = datetime.datetime.fromtimestamp(int(d, 16), pytz.utc)
|
||||
self.time = int(d, base=0)
|
||||
est = pytz.timezone('US/Eastern')
|
||||
eastern = roundTime(self.date, 15*60).astimezone(est)
|
||||
self.datestr = self.date.strftime("%Y%m%d-%H%M")
|
||||
|
|
Loading…
Reference in a new issue