server/podcast: stabilize random ID

This commit is contained in:
tharvik 2025-01-28 20:36:35 +01:00
parent 45aaaf9f0b
commit 575927c101
No known key found for this signature in database
GPG Key ID: D78C9E1C5909A25B

View File

@ -74,7 +74,7 @@ class PodcastEpisodeDownload {
return this.rssPodcastEpisode.title
}
get targetFilename() {
const appendage = this.appendRandomId ? ` (${uuidv4()})` : ''
const appendage = this.appendRandomId ? ` (${this.id})` : ''
const filename = `${this.rssPodcastEpisode.title}${appendage}.${this.fileExtension}`
return sanitizeFilename(filename)
}