From 87feac041b742e8217be19811c38c737e5732bfb Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 30 Sep 2022 23:10:33 -0400 Subject: [PATCH] Add make target to download some music for development purposes. Closes #1703 --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 9b59c45e..0fb2f8a4 100644 --- a/Makefile +++ b/Makefile @@ -97,6 +97,19 @@ single: warning-noui-build ##@Cross_Compilation Build binaries for a single supp warning-noui-build: @echo "WARNING: This command does not build the frontend, it uses the latest built with 'make buildjs'" .PHONY: warning-noui-build + +get-music: ##@Development Download some free music from Navidrome's demo instance + mkdir -p music + ( cd music; \ + curl "https://demo.navidrome.org/rest/download?u=demo&p=demo&f=json&v=1.8.0&c=dev_download&id=ec2093ec4801402f1e17cc462195cdbb" > brock.zip; \ + curl "https://demo.navidrome.org/rest/download?u=demo&p=demo&f=json&v=1.8.0&c=NavidromeUI&id=b376eeb4652d2498aa2b25ba0696725e" > back_on_earth.zip; \ + curl "https://demo.navidrome.org/rest/download?u=demo&p=demo&f=json&v=1.8.0&c=NavidromeUI&id=e49c609b542fc51899ee8b53aa858cb4" > ugress.zip; \ + curl "https://demo.navidrome.org/rest/download?u=demo&p=demo&f=json&v=1.8.0&c=NavidromeUI&id=350bcab3a4c1d93869e39ce496464f03" > voodoocuts.zip; \ + for file in *.zip; do unzip -n $${file}; done ) + @echo "Done. Remember to set your MusicFolder to ./music" +.PHONY: get-music + + ########################################## #### Miscellaneous