From 799d54bb24658254bc866f0527da5b9e14d60aac Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Thu, 12 Jan 2017 21:03:47 +0100 Subject: [PATCH] Download with calibre-companion now working (#79) --- cps/templates/json.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cps/templates/json.txt b/cps/templates/json.txt index 4e327850..d23138c9 100644 --- a/cps/templates/json.txt +++ b/cps/templates/json.txt @@ -6,7 +6,7 @@ "{{format.format}}": { "mtime": "{{entry.last_modified}}", "size": {{format.uncompressed_size}}, - "path": "/mnt/share/Data/alte_ebooks/Cornelia Ziegler/111 Orte auf Kreta die man gesehen haben muss (391)/111 Orte auf Kreta die man gesehen haben m - Cornelia Ziegler.epub" + "path": "" }{% if not loop.last %},{% endif %} {% endfor %} }, @@ -36,9 +36,8 @@ "timestamp": "{{entry.timestamp}}", "thumbnail": "/opds/cover/{{entry.id}}", "main_format": { - "epub": "/get/epub/391" - }, - "rating": 0.0, + "{{entry.data[0].format|lower}}": "/download/{{entry.id}}/{{entry.data[0].format|lower}}" + }, "authors": [ {% for author in entry.authors %} "{{author.name}}"{% if not loop.last %},{% endif %}