Open muxketeer opened 1 year ago
My current "fix"/hack to get around this is to change line 173 in elodie\filesystem.py from this:
elif part in ('album', 'extension', 'title'):
if metadata[part]:
this_value = re.sub(self.whitespace_regex, '-', metadata[part].strip())
break
into this:
elif part in ('album', 'extension', 'title'):
if metadata[part]:
this_value = re.sub(self.whitespace_regex, '-', str(metadata[part]).strip())
break
I.e. Preemptively casting the returned value of metadata[part]
to always be interpreted as a string
(ie. str
).
However, this may not be best way to deal with whatever the root of the issue is.
On select images receiving this error:
Further debugging indicates that is it is due to the value of metadata[part] returning an integer, such as
106499463.
Where this field typically, with other images, returns something like:jpg
ormov
etc..Possibly related to #400