Searcher and scanner fixes

This commit is contained in:
Ruud
2011-10-18 00:05:47 +02:00
parent eafce4436e
commit 5f23a16fae
6 changed files with 112 additions and 34 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ class QualityPlugin(Plugin):
def guess(self, files, extra = {}, loose = False):
for file in files:
size = (os.path.getsize(file) / 1024 / 1024)
size = (os.path.getsize(file) / 1024 / 1024) if os.path.isfile(file) else 0
words = re.split('\W+', file.lower())
for quality in self.all():