diff --git a/README.md b/README.md index ccd0fef..0936f69 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Also neat: You can use your **custom artist or track images**. maloja backup -or, to only backup essential data (no artwork etc) + or, to only backup essential data (no artwork etc) maloja backup -l minimal diff --git a/maloja/controller.py b/maloja/controller.py index a818bc4..4b44529 100755 --- a/maloja/controller.py +++ b/maloja/controller.py @@ -195,7 +195,8 @@ def backup(level="full"): for f in real_files: archive.add(f) - +def update(): + os.system("pip3 install malojaserver --upgrade --no-cache-dir") @mainfunction({"l":"level"},shield=True) def main(action,*args,**kwargs): @@ -205,7 +206,8 @@ def main(action,*args,**kwargs): "stop":stop, "import":loadlastfm, "debug":direct, - "backup":backup + "backup":backup, + "update":update } if action in actions: actions[action](*args,**kwargs) else: print("Valid commands: " + " ".join(a for a in actions))