mungewell / zoom-zt2

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

Added support for downloading effect and optional icon file #73

Open thammer opened 5 days ago

mungewell commented 4 days 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 days 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 days 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.