Check for media license

main
Bob Mottram 2023-01-22 22:56:15 +00:00
parent ec704d6afe
commit 6ed1d3166e
1 changed files with 4 additions and 1 deletions

View File

@ -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,