From f2ca878301d053bc52b7bd737215c7061b911f91 Mon Sep 17 00:00:00 2001 From: spl0k Date: Wed, 11 Jun 2014 17:55:01 +0200 Subject: [PATCH] Scanner: exposing `scan_file` --- supysonic/scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supysonic/scanner.py b/supysonic/scanner.py index 92825e9..3b8ca08 100644 --- a/supysonic/scanner.py +++ b/supysonic/scanner.py @@ -49,7 +49,7 @@ class Scanner: current = 0 for path in files: - self.__scan_file(path) + self.scan_file(path) current += 1 if progress_callback: progress_callback(current, total) @@ -83,7 +83,7 @@ class Scanner: return True return os.path.splitext(path)[1][1:].lower() in self.__extensions - def __scan_file(self, path): + def scan_file(self, path): tr = filter(lambda t: t.path == path, self.__tracks) if tr: tr = tr[0]