extensions without placeholder

This commit is contained in:
jb-alvarado 2020-04-09 21:05:57 +02:00
parent 8ee529c695
commit 6cd04e2ae5
2 changed files with 3 additions and 3 deletions

View File

@ -106,8 +106,8 @@ storage:
filler_path: "/mediaStorage/filler/filler-clips" filler_path: "/mediaStorage/filler/filler-clips"
filler_clip: "/mediaStorage/filler/filler.mp4" filler_clip: "/mediaStorage/filler/filler.mp4"
extensions: extensions:
- "*.mp4" - ".mp4"
- "*.mkv" - ".mkv"
shuffle: True shuffle: True

View File

@ -52,7 +52,7 @@ class MediaStore:
def fill(self): def fill(self):
for ext in _storage.extensions: for ext in _storage.extensions:
self.store.extend( self.store.extend(
glob.glob(os.path.join(self.folder, '**', ext), glob.glob(os.path.join(self.folder, '**', '*{}'.format(ext)),
recursive=True)) recursive=True))
if _storage.shuffle: if _storage.shuffle: