コード例 #1
0
ファイル: td.py プロジェクト: gitter-badger/tuenti-downloader
def update_ts(file, timestamp):
    try:
        ef = exiv_file(file)
        ef.set_date_time(datetime.fromtimestamp(timestamp))
        ef.save_file()
    except Exception as e:
        logger.exception('Something happened when writting time metadata in file %s', file);
コード例 #2
0
ファイル: td.py プロジェクト: pando85/tuenti-downloader
def update_date(file, date):
    ef = exiv_file(file)
    ef.set_date_time(date)
    ef.save_file()