Skip to content

Commit

Permalink
Simplify itunes:category logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed Oct 18, 2024
1 parent 8428f84 commit b8343c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/changelog_web/xml.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ defmodule ChangelogWeb.Xml do

def generate(document), do: XmlBuilder.generate(document)

def itunes_category() do
[{"itunes:category", %{text: "Software How-To"}}, {"itunes:category", %{text: "Tech News"}}]
def itunes_category do
[{"itunes:category", %{text: "Technology"}}]
end

def itunes_sub_category(%{slug: "news"}) do
Expand Down
2 changes: 1 addition & 1 deletion lib/changelog_web/xml/podcast.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule ChangelogWeb.Xml.Podcast do
{"itunes:author", nil, "Changelog Media"},
{"itunes:owner", nil, Xml.itunes_owner()},
{"itunes:keywords", nil, podcast.keywords},
{"itunes:category", nil, Xml.itunes_category()},
Xml.itunes_category(),
Xml.itunes_sub_category(podcast),
{"podcast:funding", %{url: "https://changelog.com/++"},
"Support our work by joining Changelog++"},
Expand Down

0 comments on commit b8343c6

Please sign in to comment.