mungewell / zoom-zt2

Python script to install/remove effects from the Zoom G1Four pedal
MIT License
62 stars 11 forks source link

Added support for downloading effect and optional icon file #73

Closed thammer closed 4 months ago

mungewell commented 4 months ago

I can see the positives of having a way in the console script to download some/all files, but I am not convinced the saving of files to local disk should be part of the zoomzt2 class. Can you adjust so that the actual saving is under main() or maybe a standalone def instead?

On up/downloading the extra files (ZIC and IIR), yes. And see you have checked whether they already exist - pedal's file system will allow uploading multiple files with same name and will consume increasing disk space.

Q. When we --uninstall do we also want to remove the extra files?

thammer commented 4 months ago

Good points.

I have moved download_and_save_file() and download_and_save_all_files() to the global namespace, as you suggested.

I have modified the behavior for uninstall and uninstallonly so that it optionally deletes the ZIC and ZIR files. The options are the same as for install/installonly, --include-zic and --include-zir.

thammer commented 4 months ago

I have tested install and uninstall of effect with .ZIC and .ZIR, examined file listing with zoomzt2-gui.py before and after install and uninstall, and I have examined the effects that appear on the Library screen on the pedal itself. Everything seems to be working as expected.