manually add podcast if search result missing
This commit is contained in:
parent
17aad95f69
commit
5cc6799356
2 changed files with 12 additions and 2 deletions
|
@ -36,6 +36,13 @@ class Podcast(Item):
|
|||
"official_site",
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def lookup_id_type_choices(cls):
|
||||
id_types = [
|
||||
IdType.RSS,
|
||||
]
|
||||
return [(i.value, i.label) for i in id_types]
|
||||
|
||||
@property
|
||||
def recent_episodes(self):
|
||||
return self.episodes.all().order_by("-pub_date")[:10]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class="grid__aside">
|
||||
<div class="aside-section-wrapper">
|
||||
|
||||
|
||||
<div class="add-entity-entries">
|
||||
<div class="add-entity-entries__entry">
|
||||
<div class="add-entity-entries__label">
|
||||
|
@ -30,6 +30,9 @@
|
|||
<a href="{% url 'catalog:create' 'TVShow' %}">
|
||||
<button class="add-entity-entries__button">{% trans '添加剧集' %}</button>
|
||||
</a>
|
||||
<a href="{% url 'catalog:create' 'Podcast' %}">
|
||||
<button class="add-entity-entries__button">{% trans '添加播客' %}</button>
|
||||
</a>
|
||||
<a href="{% url 'catalog:create' 'Album' %}">
|
||||
<button class="add-entity-entries__button">{% trans '添加专辑' %}</button>
|
||||
</a>
|
||||
|
@ -40,4 +43,4 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue