mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-19 00:18:56 +01:00
Add dropdown to the episode type
This commit is contained in:
parent
b1ee54522a
commit
9a51c3be0f
@ -8,7 +8,7 @@
|
|||||||
<ui-text-input-with-label v-model="newEpisode.episode" :label="$strings.LabelEpisode" />
|
<ui-text-input-with-label v-model="newEpisode.episode" :label="$strings.LabelEpisode" />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/5 p-1">
|
<div class="w-1/5 p-1">
|
||||||
<ui-text-input-with-label v-model="newEpisode.episodeType" :label="$strings.LabelEpisodeType" />
|
<ui-dropdown v-model="newEpisode.episodeType" :label="$strings.LabelEpisodeType" :items="episodeTypes" small />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-2/5 p-1">
|
<div class="w-2/5 p-1">
|
||||||
<ui-text-input-with-label v-model="pubDateInput" @input="updatePubDate" type="datetime-local" :label="$strings.LabelPubDate" />
|
<ui-text-input-with-label v-model="pubDateInput" @input="updatePubDate" type="datetime-local" :label="$strings.LabelPubDate" />
|
||||||
@ -89,6 +89,9 @@ export default {
|
|||||||
},
|
},
|
||||||
enclosureUrl() {
|
enclosureUrl() {
|
||||||
return this.enclosure.url
|
return this.enclosure.url
|
||||||
|
},
|
||||||
|
episodeTypes() {
|
||||||
|
return this.$store.state.globals.episodeTypes || []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -117,7 +117,7 @@ class PodcastEpisode {
|
|||||||
this.enclosure = data.enclosure ? { ...data.enclosure } : null
|
this.enclosure = data.enclosure ? { ...data.enclosure } : null
|
||||||
this.season = data.season || ''
|
this.season = data.season || ''
|
||||||
this.episode = data.episode || ''
|
this.episode = data.episode || ''
|
||||||
this.episodeType = data.episodeType || ''
|
this.episodeType = data.episodeType || 'full'
|
||||||
this.publishedAt = data.publishedAt || 0
|
this.publishedAt = data.publishedAt || 0
|
||||||
this.addedAt = Date.now()
|
this.addedAt = Date.now()
|
||||||
this.updatedAt = Date.now()
|
this.updatedAt = Date.now()
|
||||||
|
@ -899,7 +899,7 @@ class Scanner {
|
|||||||
description: episodeToMatch.description || '',
|
description: episodeToMatch.description || '',
|
||||||
enclosure: episodeToMatch.enclosure || null,
|
enclosure: episodeToMatch.enclosure || null,
|
||||||
episode: episodeToMatch.episode || '',
|
episode: episodeToMatch.episode || '',
|
||||||
episodeType: episodeToMatch.episodeType || '',
|
episodeType: episodeToMatch.episodeType || 'full',
|
||||||
season: episodeToMatch.season || '',
|
season: episodeToMatch.season || '',
|
||||||
pubDate: episodeToMatch.pubDate || '',
|
pubDate: episodeToMatch.pubDate || '',
|
||||||
publishedAt: episodeToMatch.publishedAt
|
publishedAt: episodeToMatch.publishedAt
|
||||||
|
Loading…
Reference in New Issue
Block a user