commit 1fb5c6835d5189df6eeaa9dba1de3a2012efd146
parent 371aca9427496baaeea4273d11a25a7149881d02
Author: corndog <cauchyn@firemail.cc>
Date: Sat, 29 Sep 2018 16:11:21 -0700
Clarify if/else presence
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube-embed.py b/youtube-embed.py
@@ -11,7 +11,7 @@ for li in lists:
anchor = li.find('a')
if not anchor:
continue
- if "youtube.com" in anchor['href']:
+ elif "youtube.com" in anchor['href']:
leftSide = True if len(anchor.get_text()) < 32 else False
vid = anchor['href'].split('=')[1]
embed_markup = (' <span class="nowrap">[<button class="embed"'