typo in smb provider
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 9 Mar 2023 16:54:57 +0000 (17:54 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 9 Mar 2023 16:54:57 +0000 (17:54 +0100)
music_assistant/server/providers/filesystem_smb/__init__.py

index 77898ea85872a94e48abaf3e71162de9edc4edff..3a7c182c64b129294ac8fe1367adcc39de56fb4e 100644 (file)
@@ -52,7 +52,7 @@ class SMBFileSystemProvider(FileSystemProviderBase):
         # extract params from path
         if self.config.get_value(CONF_PATH).startswith("\\\\"):
             path_parts = self.config.get_value(CONF_PATH)[2:].split("\\", 2)
-        if self.config.get_value(CONF_PATH).startswith("//"):
+        elif self.config.get_value(CONF_PATH).startswith("//"):
             path_parts = self.config.get_value(CONF_PATH)[2:].split("/", 2)
         elif self.config.get_value(CONF_PATH).startswith("smb://"):
             path_parts = self.config.get_value(CONF_PATH)[6:].split("/", 2)