publist

managing my list of publications, talks, reviews
git clone https://a3nm.net/git/publist/
Log | Files | Refs | README | LICENSE

commit 3c1cb04b5097e101dc89a33d089e6ffc802aec4d
parent 501cd884fbaa43f6bc46538c0b93d99ec2bd0c10
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 31 Mar 2023 18:32:29 +0200

only external video platform

Diffstat:
make_talks_html.py | 19++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/make_talks_html.py b/make_talks_html.py @@ -92,8 +92,25 @@ def makesuppl(publi, lang, ismain=False): l.append('<a href="%s">%s</a>' % ("#" + publi['journalversion'], stz['journalversion'][lang])) - for key in ['slides', 'slideslong', 'poster', 'video', 'code']: + for key in ['slides', 'slideslong', 'poster', 'video', 'videoplatform', 'code']: if key in publi.keys(): + + # case of videoplatform + if key == 'videoplatform' and 'video' in publi.keys(): + continue # already handled with video + if key == 'videoplatform' and 'video' not in publi.keys(): + s = stz['video'][lang] + if 'videoauthor' in publi.keys(): + raw_author = publi['videoauthor'] + author_suffix = " %s %s" % (stz['by'][lang], (' ' + stz['and'][lang] + ' ').join(makeauthor(x) for + x in raw_author.split(' '))) + s += author_suffix + s += (' %s <a href="%s">%s</a>' % + (stz['on'][lang], publi['videoexternal'], + publi['videoplatform'])) + l.append(s) + continue + if key == 'video' and 'videoplatform' in publi.keys(): s = stz['video'][lang] else: