From e4f78a30609668cd022b2c03dbfa56430725c1f8 Mon Sep 17 00:00:00 2001 From: Alexander Schlarb Date: Mon, 19 Oct 2020 15:19:52 +0200 Subject: [PATCH] Add OARS (Open Age Rating Service) metadata to generated Linux AppStream files --- src/calibre/linux.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index c16d974975..c7b62dbdd5 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -1200,8 +1200,16 @@ def write_appdata(key, entry, base, translators): E.metadata_license('CC0-1.0'), E.project_license('GPL-3.0'), E.summary(entry['summary']), + E.content_rating( + # Information Sharing: Using any online API, e.g. a user-counter + # Details at https://calibre-ebook.com/dynamic/calibre-usage . + E.content_attribute('mild', id='social-info'), + # In-App Purchases: Users are encouraged to donate real money, e.g. using Patreon + E.content_attribute('mild', id='money-purchasing'), + type='oars-1.1' + ), description, - E.url('https://calibre-ebook.com', type='homepage'), + E.url('https://calibre-ebook.com/', type='homepage'), screenshots, type='desktop' )