From d6d73d86208e9d40b808c0f87816f6f8a411a705 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= <cda@rootkey.co.uk>
Date: Thu, 23 Jul 2020 17:28:14 +0200
Subject: [PATCH] Resolve "Licence Art Libre"

---
 api/funkwhale_api/music/licenses.py  | 11 +++++++++++
 api/tests/music/licenses.json        | 13 +++++++++++++
 changes/changelog.d/1088.enhancement |  1 +
 3 files changed, 25 insertions(+)
 create mode 100644 changes/changelog.d/1088.enhancement

diff --git a/api/funkwhale_api/music/licenses.py b/api/funkwhale_api/music/licenses.py
index 599d6a7dad..dc0494100f 100644
--- a/api/funkwhale_api/music/licenses.py
+++ b/api/funkwhale_api/music/licenses.py
@@ -277,6 +277,17 @@ LICENSES = [
             "http://creativecommons.org/publicdomain/zero/1.0/"
         ],
     },
+    {
+        "code": "LAL-1.3",
+        "name": "Licence Art Libre 1.3",
+        "redistribute": True,
+        "derivative": True,
+        "commercial": True,
+        "attribution": True,
+        "copyleft": True,
+        "url": "https://artlibre.org/licence/lal",
+        "identifiers": ["http://artlibre.org/licence/lal"],
+    },
     # Creative commons version 4.0
     get_cc_license(version="4.0", perks=["by"]),
     get_cc_license(version="4.0", perks=["by", "sa"]),
diff --git a/api/tests/music/licenses.json b/api/tests/music/licenses.json
index 5a2ecd1323..4b6251c076 100644
--- a/api/tests/music/licenses.json
+++ b/api/tests/music/licenses.json
@@ -1,4 +1,17 @@
 [
+    {
+        "code": "LAL-1.3",
+        "name": "Licence Art Libre 1.3",
+        "redistribute": true,
+        "derivative": true,
+        "commercial": true,
+        "attribution": true,
+        "copyleft": true,
+        "url": "https://artlibre.org/licence/lal",
+        "identifiers": [
+            "http://artlibre.org/licence/lal"
+        ]
+    },
     {
         "name": "Creative commons - Attribution 1.0",
         "code": "cc-by-1.0",
diff --git a/changes/changelog.d/1088.enhancement b/changes/changelog.d/1088.enhancement
new file mode 100644
index 0000000000..150a7e2cd6
--- /dev/null
+++ b/changes/changelog.d/1088.enhancement
@@ -0,0 +1 @@
+Added support for Licence Art Libre (#1088)
\ No newline at end of file
-- 
GitLab