filter illegal (newline) characters to fix Dr.Dish TV records
[enigma2.git] / lib / python / Tools / Directories.py
index 7dcd5876e9660c16911520512146b15b3a036b1f..b2e43a49fc6aaaab2ca010122cf0b1eefd880e4a 100644 (file)
@@ -167,7 +167,7 @@ def getRecordingFilename(basename, dirname = None):
        basename = basename.replace('\xc2\x86', '').replace('\xc2\x87', '')
        
        for c in basename:
-               if c in non_allowed_characters:
+               if c in non_allowed_characters or ord(c) < 32:
                        c = "_"
                filename += c