Not only when there is no metadata but also when the file name pattern does not match.
Solution:
Edit the pyrenamer_filefuncs.py (at /usr/lib/python2.7/site-packages/pyrenamer/), adding this two lines to the "def replace_images(name, path, newname, newpath):" function:
Not only when there is no metadata but also when the file name pattern does not match.
Solution:
Edit the pyrenamer_ filefuncs. py (at /usr/lib/ python2. 7/site- packages/ pyrenamer/ ), adding this two lines to the "def replace_ images( name, path, newname, newpath):" function:
---------- replace( '{cameramodel} ', cameramodel) replace( '{cameramodel} ', '')
if cameramodel != None: newname = newname.
else: newname = newname.
+ if newname == "None":
+ return None, None
# Returns new name and path path(newname, path)
newpath = get_new_
return unicode(newname), unicode(newpath)
----------
Recompile it: filefuncs. py
python2 -O pyrenamer_