Skip to content

Commit

Permalink
update <itunes:explicit> tag from "no" to "false" (#531)
Browse files Browse the repository at this point in the history
* <itunes:explicit> no → false

Signed-off-by: Alex Zamai <[email protected]>

* Update feed.ex

Signed-off-by: Alex Zamai <[email protected]>

* Update podcast.ex

Signed-off-by: Alex Zamai <[email protected]>

---------

Signed-off-by: Alex Zamai <[email protected]>
  • Loading branch information
zamai authored Nov 15, 2024
1 parent bf0bc86 commit 86c763c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/changelog_web/xml/feed.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule ChangelogWeb.Xml.Feed do
{:description, nil, feed.description || " "},
{"itunes:author", nil, "Changelog Media"},
{"itunes:block", nil, "yes"},
{"itunes:explicit", nil, "no"},
{"itunes:explicit", nil, "false"},
{"itunes:summary", nil, feed.description || " "},
{"itunes:image", %{href: PodcastView.cover_url(feed)}},
{"itunes:owner", nil, Xml.itunes_owner()},
Expand All @@ -51,7 +51,7 @@ defmodule ChangelogWeb.Xml.Feed do
{"itunes:episodeType", nil, episode.type},
{"itunes:image", %{href: EpisodeView.cover_url(episode)}},
{"itunes:duration", nil, duration(feed, episode)},
{"itunes:explicit", nil, "no"},
{"itunes:explicit", nil, "false"},
{"itunes:subtitle", nil, episode.subtitle},
{"itunes:summary", nil, SharedHelpers.md_to_text(episode.summary)},
Enum.map(episode.hosts, fn p -> Xml.person(p, "host") end),
Expand Down
4 changes: 2 additions & 2 deletions lib/changelog_web/xml/plusplus.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule ChangelogWeb.Xml.Plusplus do
{:description, nil, "Thank you for subscribing to Changelog++!"},
{"itunes:author", nil, "Changelog Media"},
{"itunes:block", nil, "yes"},
{"itunes:explicit", nil, "no"},
{"itunes:explicit", nil, "false"},
{"itunes:summary", nil, "Thank you for subscribing to Changelog++!"},
{"itunes:image", %{href: url(~p"/images/podcasts/plusplus-original.png")}},
Enum.map(episodes, fn episode -> item(podcast, episode) end)
Expand All @@ -51,7 +51,7 @@ defmodule ChangelogWeb.Xml.Plusplus do
{"itunes:episodeType", nil, episode.type},
{"itunes:image", %{href: EpisodeView.cover_url(episode)}},
{"itunes:duration", nil, duration(episode)},
{"itunes:explicit", nil, "no"},
{"itunes:explicit", nil, "false"},
Enum.map(episode.hosts, fn p -> Xml.person(p, "host") end),
Enum.map(episode.guests, fn p -> Xml.person(p, "guest") end),
Xml.transcript(episode),
Expand Down
4 changes: 2 additions & 2 deletions lib/changelog_web/xml/podcast.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule ChangelogWeb.Xml.Podcast do
{:language, nil, "en-us"},
{:description, nil, FeedView.podcast_full_description(podcast)},
{"itunes:summary", nil, FeedView.podcast_full_description(podcast)},
{"itunes:explicit", nil, "no"},
{"itunes:explicit", nil, "false"},
{"itunes:image", %{href: PodcastView.cover_url(podcast)}},
{"itunes:author", nil, "Changelog Media"},
{"itunes:owner", nil, Xml.itunes_owner()},
Expand Down Expand Up @@ -62,7 +62,7 @@ defmodule ChangelogWeb.Xml.Podcast do
{"itunes:episodeType", nil, episode.type},
{"itunes:image", %{href: EpisodeView.cover_url(episode)}},
{"itunes:duration", nil, TimeView.duration(episode.audio_duration)},
{"itunes:explicit", nil, "no"},
{"itunes:explicit", nil, "false"},
Enum.map(episode.hosts, fn p -> Xml.person(p, "host") end),
Enum.map(episode.guests, fn p -> Xml.person(p, "guest") end),
Xml.transcript(episode),
Expand Down

0 comments on commit 86c763c

Please sign in to comment.