Nope
All checks were successful
repod / nextcloud (push) Successful in 1m55s
repod / nodejs (push) Successful in 2m18s

This commit is contained in:
Michel Roux 2023-08-30 19:59:20 +02:00
parent 98f6c7040f
commit b59186e361
4 changed files with 17 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<GPodder v-if="!AppConfig.repod.gpodder" />
<Subscriptions v-if="AppConfig.repod.gpodder" />
<router-view v-if="AppConfig.repod.gpodder" :key="$route.path" />
<Bar v-if="$route.params.url" />
<Bar />
</NcContent>
</template>

View File

@ -1,5 +1,5 @@
<template>
<ul :style="{marginBottom: episode ? '6rem' : 'auto'}">
<ul :class="episode ? 'margin' : ''">
<slot />
</ul>
</template>
@ -14,3 +14,9 @@ export default {
},
}
</script>
<style scoped>
.margin {
margin-bottom: 6rem;
}
</style>

View File

@ -5,10 +5,10 @@
<NcListItem v-for="episode in episodes"
:key="episode.episodeGuid"
:active="isCurrentEpisode(episode)"
:class="episode.episodeAction && episode.episodeAction.position >= episode.episodeAction.total ? 'ended': ''"
:details="formatTimeAgo(new Date(episode.episodePubDate.date))"
:force-display-actions="true"
:name="episode.episodeName"
:style="{opacity: episode.episodeAction && episode.episodeAction.position >= episode.episodeAction.total ? '.5' : 1}"
:title="episode.episodeDescription">
<template #icon>
<NcAvatar :display-name="episode.episodeName"
@ -96,3 +96,9 @@ export default {
},
}
</script>
<style scoped>
.ended {
opacity: .5;
}
</style>

View File

@ -29,7 +29,7 @@ export const player = {
action: (state, action) => {
state.episode.action = action
if (action && action.position) {
if (action && action.position && action.position < action.total) {
audio.currentTime = action.position
}
},
@ -48,7 +48,7 @@ export const player = {
audio.load()
audio.play()
if (episode.action && episode.action.position) {
if (episode.action && episode.action.position && episode.action.position < episode.action.total) {
audio.currentTime = episode.action.position
}
} else {