We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Add free_license method in import-jamendo.py

parent de116c45
......@@ -195,7 +195,7 @@ class JamendoImport:
for track in album["tracks"]:
if "http://creativecommons.org/licenses/by-sa" not in track["license"] and not "http://creativecommons.org/licenses/by/" in track["license"] and not "http://artlibre.org/licence.php/lal.html" in track["license"]:
if not self.free_license(track["license"]):
streamable = 0
streamable = 1
......@@ -406,6 +406,8 @@ class JamendoImport:
return False
def free_license(self, license):
return ("http://creativecommons.org/licenses/by-sa" in license or "http://creativecommons.org/licenses/by/" in license or "http://artlibre.org/licence.php/lal.html" in license)
if __name__ == "__main__":
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment