View Single Post
Old 02-26-2020, 04:22 AM   #4
digitalvideo
Junior Member
digitalvideo began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2017
Device: kobo H20
hi,

I try now to make it more universal.
I add a config GUI.

But for this i also try to change the code a litle bit.

When the code was :

Quote:
TempMeta = get_metadata(TempFile, ImportExt)

TempMeta.title = epubtitle
I try to change it this way :

Quote:
TempMeta = get_metadata(TempFile, ImportExt)
MetaValueToChange = title
TempMeta.MetaValueToChange = epubtitle
but this give me this error AttributeError: Metadata object has no attribute named: 'MetaValueToChange'

in fact i try to put in variable the name of the value to change, in this case i can use the same code with multiples value

any one have an idea?
digitalvideo is offline   Reply With Quote