You've already forked RadioPlayer
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user