Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve playlist filenames #28

Closed
alecigne opened this issue Feb 5, 2024 · 1 comment
Closed

Improve playlist filenames #28

alecigne opened this issue Feb 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@alecigne
Copy link
Owner

alecigne commented Feb 5, 2024

The playlists directory contains files whose filename is in the [id].json format. That makes identification of a given playlist difficult. The goal of this dev would be to include the playlist title in the filename, but in downcase and cleaned from any undesired characters (whitespace, dashes, special characters, etc.).

  • Hip-Hop -> [id]_hip_hop.json -- downcase, dash transformed into underscore
  • Funk and Soul -> [id]_funk_and_soul.json -- downcase, whitespace transformed into underscore
  • Funk & Soul -> [id]_funk_soul.json -- downcase, whitespace and "&" transformed into underscore, more than 1 underscore limited to 1 underscore
  • Downtempo / Nu Jazz -> [id]_downtempo_nu_jazz -- downcase, whitespace and "/" transformed into underscore, more than 1 underscore limited to 1 underscore
  • Drone Zone [Study / Relax / Meditate] -> `[id]_drone_zone_study_relax_meditate.json -- downcase, whitespace, "[", "]" and "/" transformed into underscore, more than 1 underscore limited to 1 underscore

Use jqwik to write a property-based test for this logic.

@alecigne alecigne added the enhancement New feature or request label Feb 5, 2024
@alecigne alecigne self-assigned this Feb 5, 2024
@alecigne alecigne changed the title Improve filename in playlists Improve playlist filenames Feb 5, 2024
@alecigne
Copy link
Owner Author

alecigne commented Feb 10, 2024

Implemented in v0.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant