Skip to content

Invidious is an alternative front-end to YouTube

Use .strip for finding email

Omar Roth7a7e735d3655
diff --git a/src/helpers.cr b/src/helpers.cr
index 4b5a77e0..95715d07 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -603,7 +603,7 @@ def fetch_user(sid, client, headers)
email = feed.xpath_node(%q(//a[@class="yt-masthead-picker-header yt-masthead-picker-active-account"]))
if email
- email = email.content.lstrip.rstrip
+ email = email.content.strip
else
email = ""
end