diff --git a/pandora/item/utils.py b/pandora/item/utils.py index ba8eb8901..238b55641 100644 --- a/pandora/item/utils.py +++ b/pandora/item/utils.py @@ -10,6 +10,8 @@ def safe_filename(filename): filename = filename.replace(': ', '_ ') filename = filename.replace('/', '_') filename = filename.replace('\\', '_') + if filename.startswith('.'): + filename = '_' + filename[1:] if filename.endswith('.'): filename = filename[:-1] + '_' return filename