Stridsvagn69420 / Cyrkensia

Music Repository Server
https://crates.io/crates/cyrkensia
GNU Affero General Public License v3.0
2 stars 0 forks source link

[BUG] dotfolders generated by Android crash the application when indexing #4

Closed Stridsvagn69420 closed 2 years ago

Stridsvagn69420 commented 2 years ago

Describe the bug Like the title states. It's due to them having no .metadata.json in there.

To Reproduce Realistic:

  1. Use a Samsung/Android phone
  2. Choose your Music folder as your CDN root
  3. Wait for a .thumbnails folder to be created
  4. Run the server via Termux

Theoratically:

  1. Create a folder without any .metadata.json file in there.
  2. Run Cyrkensia.

Expected behavior A clear and concise description of what you expected to happen.

Possible solution Either ignoring all dotfolders or just skipping the entry if there is no .metadata.json file in there. Last one seems way better.

Additional context Tried running Cyrkensia on my Android phone via Termux and the app crashed because of these folders.