Import playlists recursively #90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "import_recursive"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This pull request enhances the import functionality to include m3u playlist files from subdirectories.
Current Behavior
When selecting a directory, only the m3u files in that directory are available for import. For example, in the following directory structure:
Only playlist1.m3u would appear when selecting parentDir.
Proposed Changes
This pull request addresses this limitation by recursively calling listSafFiles for all subdirectories.
To avoid interfering with the existing sync feature, I created two new functions. The original function remains unchanged for sync operations. A new function, listSafFilesRecursive, is introduced for importing m3u files from both the selected directory and its subdirectories.
Do you think it's better to import
subdir/playlist.m3uas a playlist namedplaylistorsubdir/playlist?I would generally prefer
playlist. The only case in which I would choosesubdir/playlistwould be when there are multiple playlists with the same filename.