summaryrefslogtreecommitdiff
path: root/docs/examples/music/import/from_tellico.yaml
blob: adeb68eeb07d53a7d2990644d4ceaadcf85d2203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
title: "{{ title }}"
artists: {% if artists %}{% for a in artists %}
  - "{{ a }}"{% endfor %}{% else %}[]{% endif %}
label: {% if labels %}"{{ labels | join("; ") }}"{% else %}''{% endif %}
year: '{{ year }}'
genres: {% if genres %}{% for g in genres %}
  - "{{ g }}"{% endfor %}{% endif %}
# medium (string): CD|DVD|Cassette|Vynil
medium: '{{ medium }}'
purchase_date: '{{ pur_date }}'
purchase_price: '{{ pur_price }}'
gift: "{{ gift }}"
tracks: {% for t in tracks %}
  - title: "{{ t[0] }}"
    artist: "{{ t[1] | default('') | replace('None', '') }}"
    length: "{{ t[2] | default('') | replace('None', '') }}"
    side: "{{ t[3] | default('') | replace('None', '') }}"{% else %}[]{% endfor %}
comments: |
    {{ comments | default('.') | indent(width=4, first=False) }}