Skip to content

Commit

Permalink
Quick fix for interviews mp3 filename
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed Apr 11, 2023
1 parent 726bddc commit 60fd7eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/changelog/files/audio.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ defmodule Changelog.Files.Audio do

def storage_dir(_, {_, episode}), do: "uploads/#{episode.podcast.slug}/#{episode.slug}"

def filename(_, {_, episode = %{podcast: %{slug: "podcast"}}}),
do: "the-changelog-#{episode.slug}"

def filename(_, {_, episode}),
do: "#{PodcastView.dasherized_name(episode.podcast)}-#{episode.slug}"
end

0 comments on commit 60fd7eb

Please sign in to comment.