Fixed issue #26
This commit is contained in:
parent
a5a649c073
commit
8a848d69f9
1 changed files with 8 additions and 2 deletions
|
@ -57,7 +57,10 @@ class Collection:
|
||||||
for file in iglob(scan_path):
|
for file in iglob(scan_path):
|
||||||
f_path = Path(file)
|
f_path = Path(file)
|
||||||
f = LocalFile(f_path)
|
f = LocalFile(f_path)
|
||||||
existing[f.get_metadata("spotid")] = f_path.stem
|
try:
|
||||||
|
existing[f.get_metadata("spotid")] = f_path.stem
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
|
||||||
for playable in self.playables:
|
for playable in self.playables:
|
||||||
if playable.id in existing.keys():
|
if playable.id in existing.keys():
|
||||||
|
@ -92,7 +95,10 @@ class Collection:
|
||||||
if self.path.exists() and f_path.match(collection_path):
|
if self.path.exists() and f_path.match(collection_path):
|
||||||
continue
|
continue
|
||||||
f = LocalFile(f_path)
|
f = LocalFile(f_path)
|
||||||
existing[f.get_metadata("spotid")] = f_path.stem
|
try:
|
||||||
|
existing[f.get_metadata("spotid")] = f_path.stem
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
|
||||||
for playable in self.playables:
|
for playable in self.playables:
|
||||||
if playable.id in existing.keys():
|
if playable.id in existing.keys():
|
||||||
|
|
Loading…
Add table
Reference in a new issue