From: Bernie Innocenti Date: Sat, 12 Sep 2020 12:23:09 +0000 (-0400) Subject: Show vidoes inline in directory view X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=inline;p=geekigeeki.git Show vidoes inline in directory view --- 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 '