|
|
@ -22,7 +22,7 @@
|
|
|
|
"{{lang.lang_code}}"{% if not loop.last %},{% endif %}
|
|
|
|
"{{lang.lang_code}}"{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"comments": "{% if entry.comments|length > 0 %}{{entry.comments[0].text|safe}}{% endif %}",
|
|
|
|
"comments": "{% if entry.comments|length > 0 %}{{entry.comments[0].text.replace('"', '\\"')|safe}}{% endif %}",
|
|
|
|
"tags": [
|
|
|
|
"tags": [
|
|
|
|
{% for tag in entry.tags %}
|
|
|
|
{% for tag in entry.tags %}
|
|
|
|
"{{tag.name}}"{% if not loop.last %},{% endif %}
|
|
|
|
"{{tag.name}}"{% if not loop.last %},{% endif %}
|
|
|
@ -38,11 +38,17 @@
|
|
|
|
"main_format": {
|
|
|
|
"main_format": {
|
|
|
|
"{{entry.data[0].format|lower}}": "/download/{{entry.id}}/{{entry.data[0].format|lower}}"
|
|
|
|
"{{entry.data[0].format|lower}}": "/download/{{entry.id}}/{{entry.data[0].format|lower}}"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
"rating":{% if entry.ratings.__len__() > 0 %} "{{entry.ratings[0].rating}}.0"{% else %}0.0{% endif %},
|
|
|
|
"authors": [
|
|
|
|
"authors": [
|
|
|
|
{% for author in entry.authors %}
|
|
|
|
{% for author in entry.authors %}
|
|
|
|
"{{author.name}}"{% if not loop.last %},{% endif %}
|
|
|
|
"{{author.name}}"{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"other_formats": {},
|
|
|
|
"other_formats": {
|
|
|
|
|
|
|
|
{% if entry.data.__len__() > 1 %}
|
|
|
|
|
|
|
|
{% for format in entry.data[1:] %}
|
|
|
|
|
|
|
|
"{{format.format|lower}}": "/download/{{entry.id}}/{{format.format|lower}}"{% if not loop.last %},{% endif %}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endif %} },
|
|
|
|
"title_sort": "{{entry.sort}}"
|
|
|
|
"title_sort": "{{entry.sort}}"
|
|
|
|
}
|
|
|
|
}
|