From 6ed1d3166eae07e6ef2db8725540cb6c19c006b0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Jan 2023 22:56:15 +0000 Subject: [PATCH] Check for media license --- daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index a719a8e04..f21661355 100644 --- a/daemon.py +++ b/daemon.py @@ -21043,6 +21043,9 @@ class PubServer(BaseHTTPRequestHandler): self.server.base_dir, nickname, self.server.domain) + license_url = self.server.content_license_url + if fields.get('mediaLicense'): + license_url = fields['mediaLicense'] post_json_object['object'] = \ attach_media(self.server.base_dir, self.server.http_prefix, @@ -21055,7 +21058,7 @@ class PubServer(BaseHTTPRequestHandler): img_description, city, self.server.low_bandwidth, - self.server.content_license_url) + license_url) replace_you_tube(post_json_object, self.server.yt_replace_domain,