From 13b4f086f84ae2534cb30326a1cb3cd2a5f02aa3 Mon Sep 17 00:00:00 2001 From: robs Date: Fri, 13 Dec 2024 17:24:46 +0100 Subject: [PATCH] add copy opml feed button - correct url --- lib/pinchflat_web/controllers/sources/source_html.ex | 4 ++++ .../controllers/sources/source_html/index.html.heex | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pinchflat_web/controllers/sources/source_html.ex b/lib/pinchflat_web/controllers/sources/source_html.ex index d9673eb..02c42c0 100644 --- a/lib/pinchflat_web/controllers/sources/source_html.ex +++ b/lib/pinchflat_web/controllers/sources/source_html.ex @@ -43,6 +43,10 @@ defmodule PinchflatWeb.Sources.SourceHTML do url(conn, ~p"/sources/#{source.uuid}/feed") <> ".xml" end + def opml_feed_url(conn) do + url(conn, ~p"/podcasts/opml") <> ".xml" + end + def output_path_template_override_placeholders(media_profiles) do media_profiles |> Enum.map(&{&1.id, &1.output_path_template}) diff --git a/lib/pinchflat_web/controllers/sources/source_html/index.html.heex b/lib/pinchflat_web/controllers/sources/source_html/index.html.heex index 7add60d..1742faf 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/index.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/index.html.heex @@ -3,7 +3,7 @@