Browse Source

Need to strip the getmtime timestamp as some OSes return timestamp with microsecond (XXXX.YYYY)

pull/52/head
LecygneNoir 3 years ago
parent
commit
42ee7d761b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      prismedia/utils.py

+ 2
- 2
prismedia/utils.py View File

@ -135,8 +135,8 @@ def searchThumbnail(options):
def searchOriginalDate(options):
fileModificationDate = getmtime(options.get('--file'))
return datetime.datetime.fromtimestamp(fileModificationDate).isoformat()
fileModificationDate = str(getmtime(options.get('--file'))).split('.')
return datetime.datetime.fromtimestamp(int(fileModificationDate[0])).isoformat()
# return the nfo as a RawConfigParser object

Loading…
Cancel
Save