aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-08-01 19:11:06 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-08-01 19:13:05 +0000
commitef667f16ef26588320e8157078b5bc1ac32adae2 (patch)
tree91a94f33dccaee04388086f00e4f2fce9d098ac9 /lib
parent37db2ef91cb806a6ddd123bf7c1974d00699b86a (diff)
downloadmediasync-discord-activity.tar
mediasync-discord-activity.tar.gz
mediasync-discord-activity.zip
Discord activity - show video filenamediscord-activity
Diffstat (limited to 'lib')
-rw-r--r--lib/mediasync/router.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mediasync/router.ex b/lib/mediasync/router.ex
index 2e8b421..3219300 100644
--- a/lib/mediasync/router.ex
+++ b/lib/mediasync/router.ex
@@ -231,13 +231,13 @@ defmodule Mediasync.Router do
get "/discord_activity/rooms_for_instance" do
if Application.fetch_env!(:mediasync, :enable_discord_activity?) do
values =
- for {_pid, value} <-
+ for {pid, value} <-
Registry.match(
Mediasync.DiscordActivityInstanceRegistry,
conn.query_params["instance_id"],
:_
) do
- value
+ Map.put(value, "filename", Path.basename(URI.new!(Mediasync.Room.get_video_info(pid).url).path))
end
conn