From a98ac8304698085c9d2bf28739c673ad7a338ee1 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 18 Jun 2023 16:04:51 +1000 Subject: [PATCH] Podcast fixes --- Rakefile | 2 ++ app/templates/podcasts/index.html.slim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index f0c0ab2..7b4af17 100644 --- a/Rakefile +++ b/Rakefile @@ -38,6 +38,8 @@ namespace :blog do podcast_repo = Adamantium::Container["repos.podcast_repo"] settings = Adamantium::Container["settings"] + podcast_repo.delete_all + doc = File.open("tmp/overcast.opml") { |f| Nokogiri::XML(f) } doc.xpath("//outline[@type='rss']").each do |outline| overcast_id = outline.get_attribute("overcastId") diff --git a/app/templates/podcasts/index.html.slim b/app/templates/podcasts/index.html.slim index 72ed542..9d7285c 100644 --- a/app/templates/podcasts/index.html.slim +++ b/app/templates/podcasts/index.html.slim @@ -12,7 +12,7 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark: - podcasts.each do |podcast| tr td - img class="w-14 m-0 p-0 rounded" src="/media/podcast_art/#{podcast.overcast_id}.jpg" + img class="w-14 m-0 p-0 rounded" src="#{Hanami.app.settings.micropub_site_url}/media/podcast_art/#{podcast.overcast_id}.jpg" td class="p-0 align-middle" a class="block" href="#{podcast.url}" = podcast.name