From b57ac7909e47fabe1c9ee41bd7901641fba18027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Sat, 25 Mar 2017 20:00:11 +0100 Subject: Modify link.Link methods to abstract "*.jpeg" ext --- cgi-bin/display.py | 18 ++++++++++++------ cgi-bin/link.py | 24 +++++++++++++----------- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/cgi-bin/display.py b/cgi-bin/display.py index 990158a..72d2589 100644 --- a/cgi-bin/display.py +++ b/cgi-bin/display.py @@ -1,5 +1,5 @@ # -*- coding: utf8 -*- -import link, os, config +import link, os, config, re from datetime import datetime class Body: @@ -29,15 +29,15 @@ class Body: print ("") print ("") print ("
") - print (self.a.imglink(self.a.delta('+m'),'prev')) + print (self.a.imglink(self.a.delta('+m'), '180', 'prev')) print ("

"+self.a.timestamp(self.a.delta('+m'))+"

") print ("
") print ("
") - print (self.a.imglink(self.a.img, 'now')) + print (self.a.imglink(self.a.img, '440', 'now')) print ("

"+self.a.timestamp(self.a.img)+"

") print ("
") print ("
") - print (self.a.imglink(self.a.delta('-m'), 'next')) + print (self.a.imglink(self.a.delta('-m'), '180', 'next')) print ("

"+self.a.timestamp(self.a.delta('-m'))+"

") print ("
") print ("