0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-27 06:03:52 +01:00

since the player now parses the main files, we don't need to add every file one by one

This commit is contained in:
2025-09-29 18:05:39 +02:00
parent 978cdd4ed5
commit 4e5e828d96
2 changed files with 29 additions and 1 deletions

View File

@@ -92,9 +92,11 @@ class FileManager:
if file.lower().endswith(FORMATS): audio_files.append(file)
except (PermissionError, FileNotFoundError): continue
fake_files = [f"*.{i}" for i in FORMATS]
if audio_files:
# Folder contains audio files
items.append(FileItem(name=entry, is_folder=True, files=sorted(audio_files)))
items.append(FileItem(name=entry, is_folder=True, files=fake_files))
return items
except FileNotFoundError: