Image description

main2
Bob Mottram 2019-10-23 13:22:20 +01:00
parent 9027d68ab7
commit a496801a87
1 changed files with 2 additions and 3 deletions

View File

@ -974,13 +974,12 @@ class PubServer(BaseHTTPRequestHandler):
# full screen images shown from the media timeline
if self.path.startswith('/fullscreen?'):
fullscreenImageStr=self.path.split('?img=')
imageFilename=fullscreenImageStr[1]
imageFilename=self.path.split('?img=')[1]
if '?' in imageFilename:
imageFilename=imageFilename.split('?')[0]
imageDescription=None
if '?desc=' in self.path:
imageDescription=self.path.split('?desc=')
imageDescription=self.path.split('?desc=')[1]
if '?' in imageDescription:
imageDescription=imageDescription.split('?')[0]
msg=htmlFullScreenImage(imageFilename,imageDescription)