Show vidoes inline in directory view # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch master # Your branch is ahead of 'sunjammer/master' by 2 commits. # (use "git push" to publish your local commits) # # Changes to be committed: # modified: geekigeeki.py # # Untracked files: # geekigeeki_data/ # # ------------------------ >8 ------------------------ # Do not modify or remove the line above. # Everything below it will be ignored. 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 '