From c996cd45207324f6674c5d156babefefd57ebb43 Mon Sep 17 00:00:00 2001 From: Eric George Date: Mon, 18 Nov 2024 11:29:31 +0000 Subject: [PATCH 1/3] clear and publish --- lib/pr/music/music.ex | 5 +++++ scripts/clear.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/pr/music/music.ex b/lib/pr/music/music.ex index 8c4bca2..c8a91ed 100644 --- a/lib/pr/music/music.ex +++ b/lib/pr/music/music.ex @@ -68,6 +68,11 @@ defmodule PR.Music do {:ok} end + def clear_playlist do + Queue.clear() + queue_updated() + end + # This take a little while to run, so there can be race conditions if it gets called # a few times, before it's had a chance to affect the play state def trigger_playlist(force \\ :dont_force) do diff --git a/scripts/clear.sh b/scripts/clear.sh index ab36340..e099916 100755 --- a/scripts/clear.sh +++ b/scripts/clear.sh @@ -1,3 +1,3 @@ #!/bin/sh echo "Clearing queue" -bin/pr rpc "PR.Queue.clear"; +bin/pr rpc "PR.Music.clear_playlist"; From 35ea2f37323688dbfdb7dff7983e1b3c612a0b99 Mon Sep 17 00:00:00 2001 From: Eric George Date: Wed, 4 Dec 2024 14:20:58 +0000 Subject: [PATCH 2/3] max vol --- lib/pr_web/live/user_header_live/user_header_live.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pr_web/live/user_header_live/user_header_live.ex b/lib/pr_web/live/user_header_live/user_header_live.ex index 78a7d4a..78785d8 100644 --- a/lib/pr_web/live/user_header_live/user_header_live.ex +++ b/lib/pr_web/live/user_header_live/user_header_live.ex @@ -163,6 +163,7 @@ defmodule PRWeb.UserHeaderLive do Timex.today() |> Timex.weekday() |> case do + 3 -> 45 5 -> 35 _ -> 25 end From c980ae385d63f1ae42f2b521f42151b0d3a699cf Mon Sep 17 00:00:00 2001 From: Eric George Date: Thu, 5 Dec 2024 09:30:51 +0000 Subject: [PATCH 3/3] back to new normal --- lib/pr_web/live/user_header_live/user_header_live.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pr_web/live/user_header_live/user_header_live.ex b/lib/pr_web/live/user_header_live/user_header_live.ex index 78785d8..7931b6c 100644 --- a/lib/pr_web/live/user_header_live/user_header_live.ex +++ b/lib/pr_web/live/user_header_live/user_header_live.ex @@ -163,9 +163,8 @@ defmodule PRWeb.UserHeaderLive do Timex.today() |> Timex.weekday() |> case do - 3 -> 45 - 5 -> 35 - _ -> 25 + 5 -> 40 + _ -> 30 end end