Compare commits
No commits in common. "main" and "v0.4" have entirely different histories.
@ -1,6 +1,6 @@
|
||||
# Release Notes
|
||||
|
||||
## v0.4
|
||||
## Unreleased
|
||||
|
||||
### Add
|
||||
|
||||
|
@ -45,9 +45,8 @@ def getItemDescription(filename):
|
||||
if exif_data:
|
||||
for tag, value in exif_data.items():
|
||||
tag_name = TAGS.get(tag, tag)
|
||||
if str(tag_name) == "ImageDescription":
|
||||
imageDescription = str(value)
|
||||
break
|
||||
if tag_name == "ImageDescription":
|
||||
imageDescription = value
|
||||
else:
|
||||
imageDescription = "This image has no description. Please let me know so that I can update it."
|
||||
else:
|
||||
@ -78,7 +77,6 @@ def getPostText(filename):
|
||||
if cam != "" and tag_name == "Model":
|
||||
cam += " " + value
|
||||
if tag_name == "Object Name":
|
||||
print(value)
|
||||
title = value
|
||||
else:
|
||||
raise ValueError("No EXIF data found.")
|
||||
@ -169,18 +167,7 @@ def sendImages(Token, url, imagedir, uploadType, deleteFile):
|
||||
if uploadType == 0:
|
||||
postText = getPostText(f)
|
||||
newFileID = newFile.get("id")
|
||||
print(f"----------------------------------------")
|
||||
print(f"Post Summary: ")
|
||||
print(f"ImageID: " + newFileID)
|
||||
print(f"Image Description: " + newFile.get("description"))
|
||||
print(f"Post Text: " + postText)
|
||||
print(f"----------------------------------------")
|
||||
print(f"Do you want to Publish this?")
|
||||
if confirm():
|
||||
createNewPost(Token, url, newFileID, postText)
|
||||
else:
|
||||
deleteFile = False
|
||||
print(f"File upload aborted.")
|
||||
else:
|
||||
if postText == "":
|
||||
postText = getPostText(f)
|
||||
|
Loading…
Reference in New Issue
Block a user