Skip to content

Commit

Permalink
Updated Naming Convention for Downloaded Podcast Files (#1822)
Browse files Browse the repository at this point in the history
* Added helpful name for the downloaded file

* updated download file name
  • Loading branch information
itsjzt authored Sep 30, 2024
1 parent 264f3d2 commit 715ec8a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routes/(site)/show/[show_number]/[slug]/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
export let data;
$: ({ show, time_start } = data);
$: downloadName = `Syntax #${show.number} - ${show.title}`;
async function handleClick(e: Event) {
const { target } = e;
Expand Down Expand Up @@ -102,7 +103,13 @@
</div>
<div>
<SaveOffline {show} />
<a class="icon" title="Download Episode" aria-label="Download" download href={show.url}>
<a
class="icon"
title="Download Episode"
aria-label="Download"
download={downloadName}
href={show.url}
>
<Icon name="download" />
</a>
<a
Expand Down

0 comments on commit 715ec8a

Please sign in to comment.