geigi / cozy

🎧 Listen to audio books 📚 on Linux
https://cozy.sh
GNU General Public License v3.0
1.09k stars 84 forks source link

[Feature] Button to cancel import process #369

Open demeralde opened 3 years ago

demeralde commented 3 years ago

Bug/Feature description

I accidentally added my entire hard drive, which has a tonne of audio files in many directories. But I wasn't able to cancel this, or even confirm that I wanted it to happen. Now I have to wait until it searches, then manually remove this source afterwards.

Steps to reproduce

  1. Add a source for audiobooks that contains a lot of files (so it takes a while to load)
  2. It should add it without a prompt, and not enable you to cancel it while it's searching this new source

System Information

demeralde commented 3 years ago

Whenever I start the app now, it also freezes because this storage location is very large. Not sure what to do to work around this, besides reinstalling the app?

geigi commented 3 years ago

Hey, thanks for reporting :) A way to cancel the import process is indeed something that should be possible. If Cozy is unable to start right now the easiest way to start over is deleting this directory, but you'll lose all your book progress etc...:

~/.var/app/com.github.geigi.cozy/data/cozy

Otherwise if Cozy starts you can delete the configured storage again from the settings.

geigi commented 3 years ago

It's also possible that the database is somehow corrupted now and therefore you're experiencing the lock up. Cozy should be fine with lots of audio files.

geigi commented 3 years ago

Another (but sadly cumbersome way) would be to open

~/.var/app/com.github.geigi.cozy/data/cozy/cozy.db

With an SQLite DB client and remove the storage location from the Storage database and the books and tracks from the respective databases as well.