From 5008998dbd429f651f2463569ae3d4a1263e3754 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 12 Sep 2020 08:23:09 -0400 Subject: [PATCH] Show vidoes inline in directory view --- geekigeeki.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index 4cb7b43..79960d4 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -163,7 +163,10 @@ def link_inline(name, descr=None, kvargs={}): if not descr: descr = humanlink(name) url = relative_url(name) if video_re.match(name): - return '' % url + args = '' + if 'maxwidth' in kvargs: + args += 'width=' + kvargs['maxwidth'] + return '