Fix Creative Commons icons

This commit is contained in:
Jan Stabenow 2023-02-22 12:24:50 +01:00
parent 3da606c8dd
commit 3961343446
No known key found for this signature in database
GPG Key ID: 9C22DD65A9AAF133
2 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@
- Add Slovenian translation (thanks to Grega)
- Add Greek translation
- Mod updates npm dependencies
- Fix Creative Commons icons
- Fix positioning of the deinterlacing filter ([#465](https://github.com/datarhei/restreamer/issues/465))
## v1.5.1 > v1.6.0

View File

@ -698,10 +698,10 @@
var license = '{{channel_license}}';
var license_url = '';
var license_name = 'unknown';
if (license === 'CC0 4.0') {
if (license === 'CC0 1.0') {
license_name = 'CC0 1.0 Universal'
license_url = 'https://creativecommons.org/publicdomain/zero/1.0/';
license_image = 'https://creativecommons.org/publicdomain/zero/1.0/';
license_image = 'https://mirrors.creativecommons.org/presskit/buttons/88x31/png/pd.png';
} else if (license === 'CC BY 4.0') {
license_name = 'CC BY 4.0'
license_url = 'https://creativecommons.org/licenses/by/4.0/';
@ -725,7 +725,7 @@
} else if (license === 'CC BY-NC-ND 4.0') {
license_name = 'CC BY-NC-ND 4.0';
license_url = 'https://creativecommons.org/licenses/by-nc-nd/4.0/';
license_image = 'https://creativecommons.org/licenses/by-nc-nd/4.0/';
license_image = 'https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by-nc-nd.png';
}
document.getElementById("license").setAttribute("href", license_url);
document.getElementById("license_image").src = license_image;