diff --git a/assets/layers/toilets/toilets.svg.license_info.json b/assets/layers/toilets/toilets.svg.license_info.json index 6066530f2..056f713e8 100644 --- a/assets/layers/toilets/toilets.svg.license_info.json +++ b/assets/layers/toilets/toilets.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "toilets.svg", "license": "CC0", "sources": [ diff --git a/assets/layers/toilets/urinal.svg.license_info.json b/assets/layers/toilets/urinal.svg.license_info.json index c0ed348d9..386022ac3 100644 --- a/assets/layers/toilets/urinal.svg.license_info.json +++ b/assets/layers/toilets/urinal.svg.license_info.json @@ -8,4 +8,4 @@ "sources": [ "https://thenounproject.com/term/urinal/1307984/" ] -} +} \ No newline at end of file diff --git a/assets/layers/viewpoint/viewpoint.svg.license_info.json b/assets/layers/viewpoint/viewpoint.svg.license_info.json index d6c242cbc..47c3bcca3 100644 --- a/assets/layers/viewpoint/viewpoint.svg.license_info.json +++ b/assets/layers/viewpoint/viewpoint.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "viewpoint.svg", "license": "CC0", "sources": [ diff --git a/assets/svg/osm-copyright.svg.license_info.json b/assets/svg/osm-copyright.svg.license_info.json index 2f4e5791f..e45918b5b 100644 --- a/assets/svg/osm-copyright.svg.license_info.json +++ b/assets/svg/osm-copyright.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "osm-copyright.svg", "license": "logo; all rights reserved", "sources": [ diff --git a/assets/svg/osm-logo.svg.license_info.json b/assets/svg/osm-logo.svg.license_info.json index 8ab8578e2..481dd45b1 100644 --- a/assets/svg/osm-logo.svg.license_info.json +++ b/assets/svg/osm-logo.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "osm-logo.svg", "license": "logo; all rights reserved", "sources": [ diff --git a/assets/themes/artwork/artwork.svg.license_info.json b/assets/themes/artwork/artwork.svg.license_info.json index 9a8a992cc..34ac26110 100644 --- a/assets/themes/artwork/artwork.svg.license_info.json +++ b/assets/themes/artwork/artwork.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "artwork.svg", "license": "CC0", "sources": [ diff --git a/assets/themes/bookcases/bookcase.svg.license_info.json b/assets/themes/bookcases/bookcase.svg.license_info.json index 4ddb0d0a5..7b1ddd06f 100644 --- a/assets/themes/bookcases/bookcase.svg.license_info.json +++ b/assets/themes/bookcases/bookcase.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "bookcase.svg", "license": "CC0", "sources": [ diff --git a/assets/themes/shops/shop.svg.license_info.json b/assets/themes/shops/shop.svg.license_info.json index c36835a41..13ac195cc 100644 --- a/assets/themes/shops/shop.svg.license_info.json +++ b/assets/themes/shops/shop.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "shop.svg", "license": "CC0", "sources": [ diff --git a/assets/themes/toilets/toilets.svg.license_info.json b/assets/themes/toilets/toilets.svg.license_info.json index 6066530f2..056f713e8 100644 --- a/assets/themes/toilets/toilets.svg.license_info.json +++ b/assets/themes/toilets/toilets.svg.license_info.json @@ -1,7 +1,5 @@ { - "authors": [ - "none" - ], + "authors": [], "path": "toilets.svg", "license": "CC0", "sources": [ diff --git a/scripts/generateLicenseInfo.ts b/scripts/generateLicenseInfo.ts index 204b276ce..e6982942b 100644 --- a/scripts/generateLicenseInfo.ts +++ b/scripts/generateLicenseInfo.ts @@ -22,6 +22,12 @@ function generateLicenseInfos(paths: string[]): SmallLicense[] { licenses.push(...l) } else { const smallLicens: SmallLicense = parsed; + /*if(parsed.license === "CC-BY"){ + console.log("Rewriting ", path) + parsed.license === "CC-BY 4.0" + writeFileSync(path, JSON.stringify(smallLicens, null, " ")) + }*/ + smallLicens.path = path.substring(0, 1 + path.lastIndexOf("/")) + smallLicens.path licenses.push(smallLicens) }