Use .strip for finding email

This commit is contained in:
Omar Roth 2018-04-09 23:15:01 -05:00
parent 316ca2ab34
commit 7a7e735d36
1 changed files with 1 additions and 1 deletions

View File

@ -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