Added indexed lists and link edition in tunes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from folkugat_web.model import IndexedList
|
||||
from folkugat_web.model import temes as model
|
||||
|
||||
TEMES = [
|
||||
@@ -9,26 +10,29 @@ TEMES = [
|
||||
# ---
|
||||
model.Tema(
|
||||
title="Pasdoble de Muntanya (Cançó amb el nom molt llarg)",
|
||||
links=[
|
||||
links=IndexedList([
|
||||
model.Link(
|
||||
type=model.LinkType.AUDIO,
|
||||
subtype=model.LinkSubtype.SPOTIFY,
|
||||
id=0,
|
||||
content_type=model.ContentType.AUDIO,
|
||||
link_type=model.LinkType.SPOTIFY,
|
||||
url="https://open.spotify.com/track/4j9Krf19c5USmMvVUCoeWa?si=3023d1d83f814886",
|
||||
title="Versió de l'Orquestrina Trama",
|
||||
),
|
||||
],
|
||||
]),
|
||||
hidden=False,
|
||||
).with_ngrams(),
|
||||
# ---
|
||||
model.Tema(
|
||||
title="Astrid Waltz",
|
||||
alternatives=["vals"],
|
||||
links=[
|
||||
links=IndexedList([
|
||||
model.Link(
|
||||
type=model.LinkType.OTHER,
|
||||
subtype=None,
|
||||
id=0,
|
||||
content_type=model.ContentType.OTHER,
|
||||
link_type=None,
|
||||
url="https://marc.sastre.cat/folkugat",
|
||||
)
|
||||
],
|
||||
]),
|
||||
hidden=False,
|
||||
).with_ngrams(),
|
||||
# ---
|
||||
@@ -45,13 +49,14 @@ TEMES = [
|
||||
# ---
|
||||
model.Tema(
|
||||
title="El Gitano",
|
||||
links=[
|
||||
links=IndexedList([
|
||||
model.Link(
|
||||
type=model.LinkType.SCORE,
|
||||
subtype=model.LinkSubtype.PDF,
|
||||
id=0,
|
||||
content_type=model.ContentType.PARTITURA,
|
||||
link_type=model.LinkType.PDF,
|
||||
url="/db/temes/1/tema.pdf",
|
||||
)
|
||||
],
|
||||
]),
|
||||
hidden=False,
|
||||
).with_ngrams(),
|
||||
# ---
|
||||
@@ -68,8 +73,9 @@ TEMES = [
|
||||
# ---
|
||||
model.Tema(
|
||||
title="Malaguenya de Barxeta",
|
||||
lyrics=[
|
||||
lyrics=IndexedList([
|
||||
model.Lyrics(
|
||||
id=0,
|
||||
title="Malaguenya de Barxeta",
|
||||
content="""
|
||||
Mira si he corregut terres
|
||||
@@ -93,13 +99,14 @@ d'allà on renaix de les cendres
|
||||
el meu País Valencià.
|
||||
""".strip(),
|
||||
),
|
||||
],
|
||||
properties=[
|
||||
]),
|
||||
properties=IndexedList([
|
||||
model.Property(
|
||||
model.PropertyField.AUTOR,
|
||||
"Pep Jimeno 'Botifarra'"
|
||||
id=0,
|
||||
field=model.PropertyField.AUTOR,
|
||||
value="Pep Jimeno 'Botifarra'"
|
||||
)
|
||||
],
|
||||
]),
|
||||
hidden=False,
|
||||
).with_ngrams(),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user