I also saw -stay_open as an option to exiftool but not sure how to apply it I suppose I could move the 3 lines of exiftool commands to just one and pass multiple arguments. I tried using subprocess but for whatever reason, I didn't get it to run. Os.system("exiftool -q "+shellquote(oldfile)+" -description='"+shellquote(Name)+" courtesy of '") Os.system("exiftool -q "+shellquote(oldfile)+" -xmp:description='"+shellquote(Name)+" courtesy of '") Os.system("exiftool -q "+shellquote(oldfile)+" -xmp:title='"+shellquote(post_title)+"'") Newdir = r'/home/alan/Downloads/NEW/' + post_title Query = ("SELECT post_title,Event,File,Name from a order by File")įor (post_title, Event,File,Name) in cursor: I started running it and it quickly became evident it wouldn't be a quick thing :-( import nnectorĬnx = (user='root',database='database', password='password') I'm running a query against MySQL, looping through results and then running exiftool against an image, then moving it. Briefly, I'm looking at getting the code below to execute faster.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |