Abbotta4 / beetfs

A rewrite of beetfs for beets
MIT License
5 stars 1 forks source link

Automatically unmount and remount on library change #2

Open Kaduo opened 1 year ago

Kaduo commented 1 year ago

Hello, this works great, thanks!

I was wondering if it was possible to add an option to have the filesystem be unmounted then remounted whenever the beets library is modified, so that it takes into account the changes.

I currently do this with the Hook plugin, but this may not be the most elegant solution...

hook:
    hooks:
        - event: import
          command: screen -XS beet_mount quit && fusermount -u /path/to/mounted/fs && screen -dmS beet_mount beet mount /path/to/mounted/fs
Abbotta4 commented 1 year ago

That is a clever workaround. I will see if I can figure out how to refresh the library. Thanks for trying out the plugin.