fix: add download on episode list
All checks were successful
repod / xml (push) Successful in 37s
repod / php (push) Successful in 1m12s
repod / nodejs (push) Successful in 1m57s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-08-15 21:50:44 +02:00
parent 544c91edee
commit 19427809ca

View File

@ -70,6 +70,7 @@
</NcActionLink>
<NcActionLink
v-if="episode.url"
:download="filename(episode)"
:href="episode.url"
:name="t('repod', 'Download')"
target="_blank"
@ -214,6 +215,10 @@ export default {
},
methods: {
...mapActions(usePlayer, ['load']),
filename(episode) {
const url = new URL(episode.url)
return url.pathname.split('/').pop()
},
formatLocaleDate,
hasEnded(episode) {
return (