mirror of https://gitlab.com/bashrc2/epicyon
Check for command failure
parent
4b645ed1b9
commit
d69bded0ae
29
media.py
29
media.py
|
@ -96,20 +96,21 @@ def _spoofMetaData(baseDir: str, nickname: str, domain: str,
|
||||||
camMake, camModel, camSerialNumber) = \
|
camMake, camModel, camSerialNumber) = \
|
||||||
spoofGeolocation(baseDir, spoofCity, currTimeAdjusted,
|
spoofGeolocation(baseDir, spoofCity, currTimeAdjusted,
|
||||||
decoySeed, None, None)
|
decoySeed, None, None)
|
||||||
os.system('exiftool -artist="' + nickname + '" ' +
|
if os.system('exiftool -artist="' + nickname + '" ' +
|
||||||
'-Make="' + camMake + '" ' +
|
'-Make="' + camMake + '" ' +
|
||||||
'-Model="' + camModel + '" ' +
|
'-Model="' + camModel + '" ' +
|
||||||
'-Comment="' + str(camSerialNumber) + '" ' +
|
'-Comment="' + str(camSerialNumber) + '" ' +
|
||||||
'-DateTimeOriginal="' + published + '" ' +
|
'-DateTimeOriginal="' + published + '" ' +
|
||||||
'-FileModifyDate="' + published + '" ' +
|
'-FileModifyDate="' + published + '" ' +
|
||||||
'-CreateDate="' + published + '" ' +
|
'-CreateDate="' + published + '" ' +
|
||||||
'-GPSLongitudeRef=' + longitudeRef + ' ' +
|
'-GPSLongitudeRef=' + longitudeRef + ' ' +
|
||||||
'-GPSAltitude=0 ' +
|
'-GPSAltitude=0 ' +
|
||||||
'-GPSLongitude=' + str(longitude) + ' ' +
|
'-GPSLongitude=' + str(longitude) + ' ' +
|
||||||
'-GPSLatitudeRef=' + latitudeRef + ' ' +
|
'-GPSLatitudeRef=' + latitudeRef + ' ' +
|
||||||
'-GPSLatitude=' + str(latitude) + ' ' +
|
'-GPSLatitude=' + str(latitude) + ' ' +
|
||||||
'-Comment="" ' +
|
'-Comment="" ' +
|
||||||
outputFilename) # nosec
|
outputFilename) != 0: # nosec
|
||||||
|
print('ERROR: exiftool failed to run')
|
||||||
else:
|
else:
|
||||||
print('ERROR: exiftool is not installed')
|
print('ERROR: exiftool is not installed')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue