From: Jan Szejko <janek37@gmail.com>
Date: Tue, 19 Jun 2018 09:47:01 +0000 (+0200)
Subject: accept https in dc:rights.license
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/7b2b19383cd52f1df1e7d1bb8a29d6e099ce7a5b

accept https in dc:rights.license
---

diff --git a/src/catalogue/constants.py b/src/catalogue/constants.py
index c16e3f7bb..60cecebe5 100644
--- a/src/catalogue/constants.py
+++ b/src/catalogue/constants.py
@@ -17,6 +17,9 @@ LICENSES = {
 LICENSES['http://creativecommons.org/licenses/by-sa/3.0/deed.pl'] = \
     LICENSES['http://creativecommons.org/licenses/by-sa/3.0/']
 
+for license, data in LICENSES.items():
+    LICENSES[license.replace('http://', 'https://')] = data
+
 # Those will be generated only for books with own HTML.
 EBOOK_FORMATS_WITHOUT_CHILDREN = ['txt', 'fb2']
 # Those will be generated for all books.