commit b76c37321ec33454a43578c23e9741fa2899bd77
parent 870ebac4d924da90d830fe20d56435dc5d8a6fad
Author: rbckman <rob@robinsfirma.com>
Date: Thu, 15 Nov 2018 21:31:38 +0200
film page in browser
Diffstat:
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/srv/tarinaserver.py b/srv/tarinaserver.py
@@ -17,7 +17,8 @@ if os.path.isfile('static/Videos') == False:
films = []
urls = (
- '/', 'index'
+ '/', 'index',
+ '/f/(.+)', 'films'
)
render = web.template.render('templates/', base="base")
@@ -34,6 +35,10 @@ class index:
unrenderedfilms.append(i)
return render.index(renderedfilms, unrenderedfilms)
+def films:
+ def GET(self, film):
+ return render.filmpage(film)
+
if __name__== "__main__":
app = web.application(urls, globals())
app.run()
diff --git a/srv/templates/filmpage.html b/srv/templates/filmpage.html
@@ -0,0 +1,13 @@
+$def with (film)
+$var film
+
+<h1>$film</h1>
+
+ <p>--------------------------------------------------------------</p>
+ <video width="80%" controls>
+ <source src="static/Videos/$film/${film}.mp4" type="video/mp4">
+ Your brower is caput
+ </video>
+ <p>Copy project to your destination:</p>
+ <pre>scp -r pi@tarina.local:~/Videos/$film ~/films/$film </pre>
+