diff --git a/lib/python/Components/Storage.py b/lib/python/Components/Storage.py index 7f1c21ece30..285916df8e1 100644 --- a/lib/python/Components/Storage.py +++ b/lib/python/Components/Storage.py @@ -454,7 +454,7 @@ def cleanMediaDirs(): mounts = getProcMountsNew() mounts = [x[1] for x in mounts if x[1].startswith("/media/")] for directory in listdir("/media"): - if directory not in ("autofs", "hdd"): + if directory not in ("audiocd", "autofs", "hdd"): mediaDirectory = join("/media/", directory) if mediaDirectory not in mounts and not ismount(mediaDirectory): print(f"[Storage] remove directory {mediaDirectory} because of unmount") diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/BackupRestore.py b/lib/python/Plugins/SystemPlugins/SoftwareManager/BackupRestore.py index ba5b6977e24..39b1582f199 100755 --- a/lib/python/Plugins/SystemPlugins/SoftwareManager/BackupRestore.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareManager/BackupRestore.py @@ -513,7 +513,7 @@ def checkPlugins(self): def userRestoreScript(self, ret=None): scriptPath = None for directory in listdir("/media"): - if directory != "autofs": + if directory not in ("audiocd", "autofs"): configPath = join("/media", directory, "images/config/myrestore.sh") if exists(configPath): scriptPath = configPath diff --git a/lib/python/Screens/FlashManager.py b/lib/python/Screens/FlashManager.py index 74b96aad35e..31047cd0d31 100644 --- a/lib/python/Screens/FlashManager.py +++ b/lib/python/Screens/FlashManager.py @@ -512,7 +512,7 @@ def postFlashActionCallback(self, choice): if choice: knownFlagFiles = ("settings", "plugins", "noplugins", "slow", "fast", "turbo") for directory in listdir("/media"): # Remove known flag files from devices other than /media/hdd. - if directory not in ("autofs", "hdd"): + if directory not in ("audiocd", "autofs", "hdd"): for flagFile in knownFlagFiles: flagPath = join("/media", directory, "images/config", flagFile) if isfile(flagPath) and getsize(flagPath) == 0: