mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-04 08:39:49 +01:00
Use .strip for finding email
This commit is contained in:
parent
316ca2ab34
commit
7a7e735d36
@ -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"]))
|
email = feed.xpath_node(%q(//a[@class="yt-masthead-picker-header yt-masthead-picker-active-account"]))
|
||||||
if email
|
if email
|
||||||
email = email.content.lstrip.rstrip
|
email = email.content.strip
|
||||||
else
|
else
|
||||||
email = ""
|
email = ""
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user