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?