From: Siraaj Khandkar Date: Sun, 10 Mar 2019 04:09:44 +0000 (-0500) Subject: Add SomaFM mpc scripts X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=7b8475cd2fc823df3a61a3a6b61cc9c564a3b92e;p=khome.git Add SomaFM mpc scripts --- diff --git a/bin/mpc_add_soma_bagel_radio b/bin/mpc_add_soma_bagel_radio new file mode 100755 index 0000000..c090be9 --- /dev/null +++ b/bin/mpc_add_soma_bagel_radio @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls https://somafm.com/bagel.pls) diff --git a/bin/mpc_add_soma_deepspaceone b/bin/mpc_add_soma_deepspaceone new file mode 100755 index 0000000..cb79baf --- /dev/null +++ b/bin/mpc_add_soma_deepspaceone @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls http://somafm.com/deepspaceone.pls) diff --git a/bin/mpc_add_soma_defcon b/bin/mpc_add_soma_defcon new file mode 100755 index 0000000..1ba15c3 --- /dev/null +++ b/bin/mpc_add_soma_defcon @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls https://somafm.com/defcon256.pls) diff --git a/bin/mpc_add_soma_dronezone b/bin/mpc_add_soma_dronezone new file mode 100755 index 0000000..efca67e --- /dev/null +++ b/bin/mpc_add_soma_dronezone @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls http://somafm.com/dronezone256.pls) diff --git a/bin/mpc_add_soma_indie_pop_rocks b/bin/mpc_add_soma_indie_pop_rocks new file mode 100755 index 0000000..34f0a0a --- /dev/null +++ b/bin/mpc_add_soma_indie_pop_rocks @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls https://somafm.com/indiepop.pls) diff --git a/bin/mpc_add_soma_sonic_universe b/bin/mpc_add_soma_sonic_universe new file mode 100755 index 0000000..5c4e793 --- /dev/null +++ b/bin/mpc_add_soma_sonic_universe @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls http://somafm.com/sonicuniverse192.pls) diff --git a/bin/mpc_add_soma_spacestation b/bin/mpc_add_soma_spacestation new file mode 100755 index 0000000..4cd1a5b --- /dev/null +++ b/bin/mpc_add_soma_spacestation @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls http://somafm.com/spacestation.pls) diff --git a/bin/mpc_add_soma_suburbs_of_goa b/bin/mpc_add_soma_suburbs_of_goa new file mode 100755 index 0000000..073d2ab --- /dev/null +++ b/bin/mpc_add_soma_suburbs_of_goa @@ -0,0 +1,3 @@ +#! /bin/sh + +mpc add $($HOME/bin/soma_file_of_pls http://somafm.com/suburbsofgoa.pls) diff --git a/bin/soma_file_of_pls b/bin/soma_file_of_pls new file mode 100755 index 0000000..28660ca --- /dev/null +++ b/bin/soma_file_of_pls @@ -0,0 +1,3 @@ +#! /bin/bash + +curl "$1" | awk -F= '{metadata[$1] = $2} END {print metadata["File1"]}'