diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-04-09 23:15:01 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-04-09 23:15:01 -0500 |
| commit | 7a7e735d3655c0253a7dce1aeb273946e4a96c79 (patch) | |
| tree | e82f8078dd08889805b9077db2275bf27589b231 | |
| parent | 316ca2ab34d0701940a48dad0bd2b03f5a7c6c28 (diff) | |
| download | invidious-7a7e735d3655c0253a7dce1aeb273946e4a96c79.tar.gz invidious-7a7e735d3655c0253a7dce1aeb273946e4a96c79.tar.bz2 invidious-7a7e735d3655c0253a7dce1aeb273946e4a96c79.zip | |
Use .strip for finding email
| -rw-r--r-- | src/helpers.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
