geigi / cozy

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

Issue with removing audiobook from library #718

Closed peter099 closed 2 years ago

peter099 commented 2 years ago

Bug/Feature description

If i want to remove audiobook from the library without deleting it from my hard disk, it doesn't seem there is such a option. It removes the audiobook from library but also deletes it from the hard disk.

Steps to reproduce

Right click on audiobook cover and select 'Remove from library'. It ask me to delete the audiobook from hard disk.

System Information

geigi commented 2 years ago

Hey, thanks for reporting. This is a design decision I made because it gets quite complex if you change this behavior. Cozy imports all books in the selected directories. If you allow removing a book from the library without deleting it from the disk, it would get reimported on the next import.

If you don't want to include certain files, move them to a directory which is not added to cozy. After that you can remove the books from the library. You won't see the dialog to delete files then.

peter099 commented 2 years ago

Well, i have to remember that so i don't delete accidentally some of my audio books, which i did recently.

geigi commented 2 years ago

Im sorry about that... that's why there is the explicit warning that the files will be deleted from the disk. Removing from the library doesn't make any sense though as they will be added again at the next scan.