fix: ♿ add download on episode list
This commit is contained in:
parent
544c91edee
commit
19427809ca
@ -70,6 +70,7 @@
|
|||||||
</NcActionLink>
|
</NcActionLink>
|
||||||
<NcActionLink
|
<NcActionLink
|
||||||
v-if="episode.url"
|
v-if="episode.url"
|
||||||
|
:download="filename(episode)"
|
||||||
:href="episode.url"
|
:href="episode.url"
|
||||||
:name="t('repod', 'Download')"
|
:name="t('repod', 'Download')"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -214,6 +215,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(usePlayer, ['load']),
|
...mapActions(usePlayer, ['load']),
|
||||||
|
filename(episode) {
|
||||||
|
const url = new URL(episode.url)
|
||||||
|
return url.pathname.split('/').pop()
|
||||||
|
},
|
||||||
formatLocaleDate,
|
formatLocaleDate,
|
||||||
hasEnded(episode) {
|
hasEnded(episode) {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user